fix: label remote playback in the media bar
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
This commit is contained in:
1 parent
a1af85dd72
commit
5994b94406
1 file changed
+6
-3
@@ -117,10 +117,13 @@ const AudioPlayer = () => {
|
|||||||
? activeItem.ArtistItems
|
? activeItem.ArtistItems
|
||||||
: (activeItem?.AlbumArtists ?? []);
|
: (activeItem?.AlbumArtists ?? []);
|
||||||
const artistNames = artists.map((artist) => artist.Name).filter(Boolean);
|
const artistNames = artists.map((artist) => artist.Name).filter(Boolean);
|
||||||
|
const remoteDevice = remote
|
||||||
|
? remote.DeviceName || remote.Client || "another device"
|
||||||
|
: undefined;
|
||||||
const subtitle = remote
|
const subtitle = remote
|
||||||
? [artistNames.join(", "), remote.DeviceName || remote.Client]
|
? artistNames.length > 0
|
||||||
.filter(Boolean)
|
? `${artistNames.join(", ")} · ${remoteDevice}`
|
||||||
.join(" · ")
|
: `Playing on ${remoteDevice}`
|
||||||
: artistNames.join(", ") || activeItem?.Album || "";
|
: artistNames.join(", ") || activeItem?.Album || "";
|
||||||
const coverUrl =
|
const coverUrl =
|
||||||
api && activeItem?.Id
|
api && activeItem?.Id
|
||||||
|
|||||||
Reference in new issue
Block a user