Skip to content

Commit

Permalink
Always put back the (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-was-here committed Jun 27, 2023
1 parent 82722f4 commit fe4ddce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nowplaying/artistextras/discogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def download(self, metadata=None, imagecache=None): # pylint: disable=too-many-
metadata['artist'] = self.there.sub('', metadata['artist'])
artistresultlist = self._find_discogs_artist_releaselist(metadata)

metadata['artist'] = oldartist

if not artistresultlist:
logging.debug('discogs did not find it')
return None
Expand Down
4 changes: 2 additions & 2 deletions nowplaying/artistextras/theaudiodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def download(self, metadata=None, imagecache=None): # pylint: disable=too-many-
if artistdata := self.artistdatafromname(apikey, metadata['artist']):
extradata.extend(artist for artist in artistdata.get('artists')
if self._check_artist(artist))
else:
metadata['artist'] = oldartist

metadata['artist'] = oldartist

if not extradata:
return None
Expand Down

0 comments on commit fe4ddce

Please sign in to comment.