mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-28 18:46:13 +00:00
Merge pull request 'Fix error "AttributeError: 'dict' object has no attribute 'name'" when attempt to downloading an artist' (#16) from AllsGamingHD/deemix-py-fork:main into main
Reviewed-on: https://git.freezer.life/RemixDev/deemix-py/pulls/16
This commit is contained in:
commit
242465eb21
|
@ -77,9 +77,9 @@ def removeDuplicateArtists(artist, artists):
|
|||
|
||||
def formatListener(key, data=None):
|
||||
if key == "startAddingArtist":
|
||||
return f"Started gathering {data.name}'s albums ({data.id})"
|
||||
return f"Started gathering {data['name']}'s albums ({data['id']})"
|
||||
if key == "finishAddingArtist":
|
||||
return f"Finished gathering {data.name}'s albums ({data.id})"
|
||||
return f"Finished gathering {data['name']}'s albums ({data['id']})"
|
||||
if key == "updateQueue":
|
||||
uuid = f"[{data['uuid']}]"
|
||||
if data.get('downloaded'):
|
||||
|
|
Loading…
Reference in a new issue