dobbelina / repository.dobbelina

repository.dobbelina- Kodi is a registered trademark of the XBMC Foundation.We are not connected to or in any other way affiliated with Kodi
https://dobbelina.github.io/
273 stars 92 forks source link

Beeg crashing #405

Closed falbani closed 3 years ago

falbani commented 3 years ago

The video["duration"] contains some null values "duration":null,

and when trying to do m, s = divmod(video["duration"], 60) it will crash saying TypeError: int() argument must be a string or a number, not 'NoneType'

I made a quick fix doing this, but I am sure you guys will find a better way

if video["duration"] is not None:
    m, s = divmod(video["duration"], 60)
else:
    m, s = divmod(0, 60)

thank you for this AWESOME plugin!

Gujal00 commented 3 years ago

Which addon? it works fine in cumination

falbani commented 3 years ago

Which addon? it works fine in cumination

Are you sure? Maybe you didn't get any null value from beeg, try again it should crash eventually... I got crashes in two machines Uwc 1.2.42 latest from the repository @ Kodi 1.76 krypton @ Windows 10 Cumination 1.1.2 latest from the repository @ Kodi 1.8 leia @ Android TV

12asdfg12 commented 3 years ago

Fixed in cumination 1.1.3