acgonzales / pydeezer

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

Raises error is certain elements of tags not found like Genre, Cover Image. #6

Open VikasRana opened 4 years ago

VikasRana commented 4 years ago

File "C:\Python37\lib\site-packages\pydeezer\Deezer.py", line 471, in download_track self._write_mp3_tags(download_path, track, tags=tags) File "C:\Python37\lib\site-packages\pydeezer\Deezer.py", line 867, in _write_mp3_tags mime=cover["mime_type"], TypeError: 'NoneType' object is not subscriptable

acgonzales commented 4 years ago

I think the problem here is that the track you're trying to download does not have any cover image provided by Deezer. Just a hunch, I'll investigate even more.

Can you specify on which track does this error occurs?

acgonzales commented 4 years ago

I committed a fix, due to lack of information to test the fix. Please test it once again on your end and close this issue if the issue was resolved.