Fix: typo causes wallpaper generation to fail
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 16 Jan 2025 22:57:38 +0000 (23:57 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 16 Jan 2025 22:57:38 +0000 (23:57 +0100)
music_assistant/controllers/metadata.py

index 006674817569fc6d9584902ae478572d72a03276..a99b631f5343609f5383e950e3534c0092d20cff 100644 (file)
@@ -668,7 +668,7 @@ class MetaDataController(CoreController):
         # fanart image
         fanart_image = next((x for x in cur_images if x.type == ImageType.FANART), None)
         if not fanart_image or self._collage_images_dir in fanart_image.path:
-            img_filename = thumb_image.path if thumb_image else f"{uuid4().hex}_fanart.jpg"
+            img_filename = fanart_image.path if fanart_image else f"{uuid4().hex}_fanart.jpg"
             if collage_fanart_image := await self.create_collage_image(
                 all_playlist_tracks_images, img_filename, fanart=True
             ):