Remove artist_id not album_id
authorMel Harbour <melharbour@gmail.com>
Mon, 5 Aug 2024 13:08:54 +0000 (14:08 +0100)
committerMel Harbour <melharbour@gmail.com>
Mon, 5 Aug 2024 13:08:54 +0000 (14:08 +0100)
music_assistant/server/providers/filesystem_local/base.py

index d464eb78d2aaec2466b997a1d1d6f5d6c8aa34ac..57f40ef04be2735154c5ca23d773caf7a500a8d0 100644 (file)
@@ -437,7 +437,7 @@ class FileSystemProviderBase(MusicProvider):
             artist_albums = await self.mass.music.artists.albums(artist_id, "library")
             artist_tracks = await self.mass.music.artists.tracks(artist_id, "library")
             if not (artist_albums or artist_tracks):
-                await self.mass.music.artists.remove_item_from_library(album_id)
+                await self.mass.music.artists.remove_item_from_library(artist_id)
 
     async def get_artist(self, prov_artist_id: str) -> Artist:
         """Get full artist details by id."""