acgonzales / pydeezer

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

Index out of range Error #11

Closed timomal closed 3 years ago

timomal commented 3 years ago

Hey,

when downloading music without genre there will be a 'index out of range' error.

Fix it by adding a try-except around line 270 in Deezer.py.

        if "genre_id" in album_data:
            try:
                tags["genre"] = album_data["genres"]["data"][0]["name"]
            except:
                tags["genre"] = "unknown"