Jaffa / amazon-music

Provide programmatic access to Amazon Music/Prime Music's streaming service
Apache License 2.0
336 stars 67 forks source link

Error opening album if originalReleaseDate is of unexpected type #26

Open Franknjava opened 4 years ago

Franknjava commented 4 years ago

If you try to open ASIN B07NP1QCDC, you'll get the following error in line 551:

TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

Line 551 is: self.releaseDate = data['originalReleaseDate'] / 1000

Obviously the value of originalReleaseDate cannot be divided due to an illegal type.

I am not a python expert, otherwise I would fix it myself. But it seems to be an easily to solve issue.

BTW: commenting the line out works, but then there is no originalReleaseDate at all, of course.