Skip to content

Commit

Permalink
[ 1.0.16 ] * This release requires the SpotifyPlus Integration v1.0.6…
Browse files Browse the repository at this point in the history
…8+ release; please make sure you update the SpotifyPlus integration prior to updating this SpotifyPlus Card release.

  * Added "Active User" information to Spotify Connect Device details display.
  • Loading branch information
thlucas1 committed Dec 6, 2024
1 parent e731fb0 commit 4f05422
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Change are listed in reverse chronological order (newest to oldest).

<span class="changelog">

###### [ 1.0.16 ] - 2024/12/06

* This release requires the SpotifyPlus Integration v1.0.68+ release; please make sure you update the SpotifyPlus integration prior to updating this SpotifyPlus Card release.
* Added "Active User" information to Spotify Connect Device details display.

###### [ 1.0.15 ] - 2024/12/02

* This release requires the SpotifyPlus Integration v1.0.67+ release; please make sure you update the SpotifyPlus integration prior to updating this SpotifyPlus Card release.
Expand Down
3 changes: 3 additions & 0 deletions src/components/device-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ class DeviceActions extends FavActionsBase {
<div class="grid-action-info-hdr-s">Library Version</div>
<div class="grid-action-info-text-s copy2cb" @click=${copyToClipboard}>${this.deviceInfo?.DeviceInfo.LibraryVersion}</div>
<div class="grid-action-info-hdr-s">Active User</div>
<div class="grid-action-info-text-s copy2cb" @click=${copyToClipboard}>${this.deviceInfo?.DeviceInfo.ActiveUser}</div>
</div>
</div>
</div>`;
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from 'lit';

/** current version of the card. */
export const CARD_VERSION = '1.0.14';
export const CARD_VERSION = '1.0.16';

/** SpotifyPlus integration domain identifier. */
export const DOMAIN_SPOTIFYPLUS = 'spotifyplus';
Expand Down
38 changes: 19 additions & 19 deletions src/services/spotifyplus-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ export class SpotifyPlusService {
serviceData['market'] = market;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -865,7 +865,7 @@ export class SpotifyPlusService {
serviceData['market'] = market;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -999,7 +999,7 @@ export class SpotifyPlusService {
// update service data parameters (with optional parameters).
if (artist_id)
serviceData['artist_id'] = artist_id;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -1072,7 +1072,7 @@ export class SpotifyPlusService {
serviceData['artist_id'] = artist_id;
if (market)
serviceData['market'] = market;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -1151,7 +1151,7 @@ export class SpotifyPlusService {
serviceData['limit'] = limit;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -1387,7 +1387,7 @@ export class SpotifyPlusService {
serviceData['offset'] = offset;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -1462,7 +1462,7 @@ export class SpotifyPlusService {
serviceData['country'] = country;
if (locale)
serviceData['locale'] = locale;
if (refresh)
if (refresh != null)
serviceData['refresh'] = refresh;

// create service request.
Expand Down Expand Up @@ -1546,7 +1546,7 @@ export class SpotifyPlusService {
serviceData['country'] = country;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -1771,7 +1771,7 @@ export class SpotifyPlusService {
serviceData['offset'] = offset;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -2026,7 +2026,7 @@ export class SpotifyPlusService {
serviceData['offset'] = offset;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -2199,13 +2199,13 @@ export class SpotifyPlusService {
};

// update service data parameters (with optional parameters).
if (verify_user_context)
if (verify_user_context != null)
serviceData['verify_user_context'] = verify_user_context;
if (verify_timeout)
if (verify_timeout != null)
serviceData['verify_timeout'] = verify_timeout;
if (refresh_device_list)
if (refresh_device_list != null)
serviceData['refresh_device_list'] = refresh_device_list;
if (activate_device)
if (activate_device != null)
serviceData['activate_device'] = activate_device;
if (delay)
serviceData['delay'] = delay;
Expand Down Expand Up @@ -2284,9 +2284,9 @@ export class SpotifyPlusService {
};

// update service data parameters (with optional parameters).
if (refresh)
if (refresh != null)
serviceData['refresh'] = refresh;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down Expand Up @@ -2455,9 +2455,9 @@ export class SpotifyPlusService {
serviceData['offset'] = offset;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;
if (exclude_audiobooks)
if (exclude_audiobooks != null)
serviceData['exclude_audiobooks'] = exclude_audiobooks;

// create service request.
Expand Down Expand Up @@ -2605,7 +2605,7 @@ export class SpotifyPlusService {
serviceData['market'] = market;
if (limit_total)
serviceData['limit_total'] = limit_total;
if (sort_result)
if (sort_result != null)
serviceData['sort_result'] = sort_result;

// create service request.
Expand Down

0 comments on commit 4f05422

Please sign in to comment.