phil65 / script.extendedinfo

script.extendedinfo
http://forum.xbmc.org/showthread.php?tid=160558
GNU General Public License v2.0
59 stars 79 forks source link

fix duration is none error with Trakt #46

Closed BigNoid closed 8 years ago

BigNoid commented 8 years ago

I've seen a couple times that the Trakt API returns None for duration. This leads to an error 'duration': item["runtime"] * 60 TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

phil65 commented 8 years ago

Thx for the heads-up, fixed it with https://github.com/phil65/script.extendedinfo/commit/5048a7e9e21268d89f8cc53782c5db0f793ac904