code tweak
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 17 Feb 2025 08:21:02 +0000 (09:21 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 17 Feb 2025 08:21:02 +0000 (09:21 +0100)
music_assistant/controllers/player_queues.py

index 4e32a938148dc0c3930c02ef6c1fb1a08d526a88..04cbe415333efa2a772be01fdeb1b4c83c1e5d8a 100644 (file)
@@ -1039,18 +1039,12 @@ class PlayerQueuesController(CoreController):
                 # Youtube Music has poor thumbs by default, so we always fetch the full item
                 # this also catches the case where they have an unavailable item in a listing
                 queue_item.media_item = await self.mass.music.get_item_by_uri(queue_item.uri)
-            # ensure we got the original album set
-            if (
-                album
-                and library_item
-                and library_item.album
-                and album.item_id != library_item.album.item_id
-                and (
-                    library_album := await self.mass.music.get_library_item_by_prov_id(
-                        album.media_type,
-                        album.item_id,
-                        album.provider,
-                    )
+            # ensure we got the full (original) album set
+            if album and (
+                library_album := await self.mass.music.get_library_item_by_prov_id(
+                    album.media_type,
+                    album.item_id,
+                    album.provider,
                 )
             ):
                 queue_item.media_item.album = library_album