Fix: return matched tracks in get track albums
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 25 Feb 2025 17:49:34 +0000 (18:49 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 25 Feb 2025 17:49:34 +0000 (18:49 +0100)
music_assistant/controllers/media/tracks.py

index 75bd9f19ba9cba6ec308202095ab24c2362106ea..19cf7dc8cd6f74e5a5cf9d40ccfaab86a60c0656 100644 (file)
@@ -255,9 +255,6 @@ class TracksController(MediaControllerBase[Track]):
         )
         # return all (unique) items from all providers
         result: UniqueList[Album] = UniqueList(db_items)
-        if full_track.provider == "library" and in_library_only:
-            # return in-library items only
-            return result
         # use search to get all items on the provider
         search_query = f"{full_track.artist_str} - {full_track.name}"
         # TODO: we could use musicbrainz info here to get a list of all releases known