You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling client.get_chart() results in the following stack trace:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/deezer-python/deezer/client.py", line 213, in get_chart
return self.get_object(
File "/deezer-python/deezer/client.py", line 205, in get_object
return self._process_json(json, parent)
File "/deezer-python/deezer/client.py", line 120, in _process_json
value = self._process_json(value, parent)
File "/deezer-python/deezer/client.py", line 115, in _process_json
return [self._process_json(i, parent) for i in item["data"]]
File "/deezer-python/deezer/client.py", line 115, in <listcomp>
return [self._process_json(i, parent) for i in item["data"]]
File "/deezer-python/deezer/client.py", line 126, in _process_json
object_class = self.objects_types[result["type"]]
KeyError: 'podcast'
Will attempt to fix and introduce a PR
The text was updated successfully, but these errors were encountered:
right, so this is caused by podcast not being in Client.objects_types. I'll create a new resources.Podcast class and introduce a few Playlist methods when fixing this.
- created a (so far empty) Podcast(Resource) class
- import it in client.py and add it to Client.objects_types as "podcast"
- update test cassette files (with the new podcast data)
- updates existing tests (to check for the now-changed cassette data)
Discovered when testing/fixing #127
Calling
client.get_chart()
results in the following stack trace:Will attempt to fix and introduce a PR
The text was updated successfully, but these errors were encountered: