From: Marcel van der Veldt Date: Mon, 17 Feb 2025 08:21:02 +0000 (+0100) Subject: code tweak X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=9856e614685304432c0e68bc9966e63fd8d2effc;p=music-assistant-server.git code tweak --- diff --git a/music_assistant/controllers/player_queues.py b/music_assistant/controllers/player_queues.py index 4e32a938..04cbe415 100644 --- a/music_assistant/controllers/player_queues.py +++ b/music_assistant/controllers/player_queues.py @@ -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