mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2025-01-29 17:18:28 +00:00
Fixed media key error
This commit is contained in:
parent
55328e857b
commit
2bc2b3fd41
|
@ -183,7 +183,7 @@ class Deezer:
|
|||
result.append(WrongGeolocation(self.current_user['country']))
|
||||
else:
|
||||
result.append(DeezerError(json.dumps(response)))
|
||||
if data['media']:
|
||||
if 'media' in data:
|
||||
result.append(data['media'][0]['sources'][0]['url'])
|
||||
else:
|
||||
result.append(None)
|
||||
|
|
Loading…
Reference in a new issue