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?.AlbumArtists ?? []);
|
||||
const artistNames = artists.map((artist) => artist.Name).filter(Boolean);
|
||||
const remoteDevice = remote
|
||||
? remote.DeviceName || remote.Client || "another device"
|
||||
: undefined;
|
||||
const subtitle = remote
|
||||
? [artistNames.join(", "), remote.DeviceName || remote.Client]
|
||||
.filter(Boolean)
|
||||
.join(" · ")
|
||||
? artistNames.length > 0
|
||||
? `${artistNames.join(", ")} · ${remoteDevice}`
|
||||
: `Playing on ${remoteDevice}`
|
||||
: artistNames.join(", ") || activeItem?.Album || "";
|
||||
const coverUrl =
|
||||
api && activeItem?.Id
|
||||
|
||||
Reference in new issue
Block a user