some cleanup
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 23 Apr 2024 18:41:43 +0000 (20:41 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 23 Apr 2024 18:41:43 +0000 (20:41 +0200)
music_assistant/server/controllers/media/albums.py
music_assistant/server/providers/filesystem_local/__init__.py

index 2d722fba2d810357370cc864e9f329e561e3868f..a82ee2f1a7230fb2e9795d654fccd9800066a85c 100644 (file)
@@ -473,6 +473,8 @@ class AlbumsController(MediaControllerBase[Album]):
         """
         if db_album.provider != "library":
             return  # Matching only supported for database items
+        if not db_album.artists:
+            return  # guard
         artist_name = db_album.artists[0].name
 
         async def find_prov_match(provider: MusicProvider):
index eb313a7629aa9a647998373b47bb06b99307c19f..a7380aca9bd7287892440d1a53ecf15e0cdd67a8 100644 (file)
@@ -215,7 +215,6 @@ class LocalFileSystemProvider(FileSystemProviderBase):
         cache_key = f"{self.instance_id}.playlist_migration_done"
         if await self.mass.cache.get(cache_key):
             return
-        self.logger.info("Starting playlist migration...")
         async for item in self.listdir("", False):
             if not item.is_file:
                 continue