jakewaldron / PlexEmail

This script aggregates all new TV, movie and music releases for the past configured time then optionally writes to your web directory and sends out an email.
206 stars 32 forks source link

Error: unsupported operand type(s) #38

Closed soundtrackgeek closed 8 years ago

soundtrackgeek commented 8 years ago

I'm getting an error when sending emails: Traceback (most recent call last): File "plexEmail.py", line 1330, in duration = row[5]/1000 TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

I believe it has something to do with my music library. Strange this is, it has worked fine the last few days.

soundtrackgeek commented 8 years ago

The only think I can think of is that I added an album with only 1 track which is 1:04:52. Maybe it can only do track length until 59:59?

soundtrackgeek commented 8 years ago

I tried deleting that album and my mail works again :)

jakewaldron commented 8 years ago

Thanks for that insight. The current dev branch has a fix in it for this already, but I will see if this changes how it should be fixed.