From b8ec6d66af87faa4dc7a00dc6ba6f622b2bc2f6a Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Mon, 23 Mar 2026 17:54:21 -0700 Subject: [PATCH] Add missing _get_artist_image_from_albums to HydrabaseClient Method exists on iTunesClient and DeezerClient but was missing from HydrabaseClient, causing AttributeError when Hydrabase is active and Build a Playlist tries to fetch artist images. --- core/hydrabase_client.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/hydrabase_client.py b/core/hydrabase_client.py index 7c724aa7..f30324b2 100644 --- a/core/hydrabase_client.py +++ b/core/hydrabase_client.py @@ -517,6 +517,18 @@ class HydrabaseClient: '_source': 'hydrabase', } + def _get_artist_image_from_albums(self, artist_id: str): + """Get artist image from their album art — stub for interface parity with iTunes/Deezer clients.""" + try: + albums = self.get_artist_albums(artist_id, limit=5) + if albums: + for album in albums: + if album.image_url: + return album.image_url + except Exception: + pass + return None + def get_artist_albums(self, artist_id: str, album_type: str = 'album,single', limit: int = 50) -> List[Album]: """Get albums by artist — returns Album dataclass list.