When using the following code with v5.3.3 of this lib
deezer_client = deezer.Client()
deezer_podcast = deezer_client.get_podcast(3330122)
deezer_episodes = deezer_podcast.get_episodes()
for episode in deezer_episodes:
print(episode.title)
print(dir(episode))
print(episode.link)
I get an output like
my episode title
['__annotations__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_fields', '_fields_parsers', '_parse_release_date', 'as_dict', 'client', 'duration', 'get_paginated_list', 'get_relation', 'id', 'picture', 'podcast', 'release_date', 'title', 'type']
Traceback (most recent call last):
[...],
File "/path/to/file.py", line 517, in function_name
print(episode.link)
AttributeError: 'Episode' object has no attribute 'link'
According to deezer.Episode, this attribute should be available. According to the official deezer docs as well.
As a workaround, I can craft the link myself like f"https://www.deezer.com/de/episode/{episode.id}"
.
Is this a bug or a mistake on my side?