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
In src/deezer/resources/artist.py
The Artist.get_radio method returns a list of tracks with the caller artist as the artist.
A radio is composed of tracks that are from other artists from the most part (did not test with less popular artists).
To Reproduce
Environment
(dzp) Thomass-MBP:deezer_python tdambrin$ pip show deezer-python
Name: deezer-python
Version: 7.1.0
Summary: A friendly wrapper library for the Deezer API
Home-page: https://github.com/browniebroke/deezer-python
Author: Bruno Alla
Author-email: alla.brunoo@gmail.com
License: MIT
Location: /Users/tdambrin/.pyenv/versions/3.13.0/envs/dzp/lib/python3.13/site-packages
Editable project location: /Users/tdambrin/Documents/proj/deezer_python
Requires: httpx
Required-by:
Reproduce
importrequestsfromdeezerimportClientdaft_punk=Client().get_artist(27)
radio_=daft_punk.get_radio()
raw_response=requests.get("https://api.deezer.com/artist/27/radio").json()
assertany(track_['artist']['name'] !=daft_punk.namefortrack_inraw_response['data']), (
"Raw Radio response returned only Daft Punk songs"
)
# Issue - Artist forwarded as track artist by src.deezer.client:L116unique_artists_names= {}
assertany(track_.artist.name!=daft_punk.namefortrack_inradio_), (
f"All radio tracks have {daft_punk} as an Artist"
)
Additional context
→ Fix proposed in PR
Thanks for the package, it's greatly made!
Version
7.1.0
Platform
macOS 14.2.1
Code of Conduct
I agree to follow this project's Code of Conduct.
No Duplicate
I have checked existing issues to avoid duplicates.
The text was updated successfully, but these errors were encountered:
Describe the bug
In src/deezer/resources/artist.py
The Artist.get_radio method returns a list of tracks with the caller artist as the artist.
A radio is composed of tracks that are from other artists from the most part (did not test with less popular artists).
To Reproduce
Environment
(dzp) Thomass-MBP:deezer_python tdambrin$ pip show deezer-python Name: deezer-python Version: 7.1.0 Summary: A friendly wrapper library for the Deezer API Home-page: https://github.com/browniebroke/deezer-python Author: Bruno Alla Author-email: alla.brunoo@gmail.com License: MIT Location: /Users/tdambrin/.pyenv/versions/3.13.0/envs/dzp/lib/python3.13/site-packages Editable project location: /Users/tdambrin/Documents/proj/deezer_python Requires: httpx Required-by:
Reproduce
Additional context
→ Fix proposed in PR
Thanks for the package, it's greatly made!
Version
7.1.0
Platform
macOS 14.2.1
Code of Conduct
No Duplicate
The text was updated successfully, but these errors were encountered: