acgonzales / pydeezer

A package to search and download musics on Deezer.
The Unlicense
53 stars 14 forks source link

get_track_download_url<Response [403]> #29

Open chynphh opened 3 years ago

chynphh commented 3 years ago

Hi, Thank you very much for this repo, it has helped me a lot. I am trying to download some songs using track_id, but some of them fail to download. I checked the code and found that the download URL could not be generated in get_track_download_url(). No matter what qualities is, <Response [403]> will be returned in https://github.com/acgonzales/pydeezer/blob/e894b2a14d13bc33d83bb71d75d0f6302357b5d8/pydeezer/Deezer.py#L277-L278 But I checked that there is data in track data, there are qualities' filesizes.

track_id = 82153176
   .... ,
'FILESIZE_AAC_64': '0', 
'FILESIZE_MP3_64': '0', 
'FILESIZE_MP3_128': '3483270', 
'FILESIZE_MP3_256': '0', 
'FILESIZE_MP3_320': '8708178', 
'FILESIZE_FLAC': '24917709', 
'FILESIZE': '3483270',
   .....

I don't know why. I hope to get your help