plugin.video.mubi icon indicating copy to clipboard operation
plugin.video.mubi copied to clipboard

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

Open cvanaken opened this issue 8 years ago • 0 comments

Hi,

I was able to run the mubi plugin on Libreelec 8.2.1 (kodi 17.6) one time with inputstream.adaptive installed, after this run I always get the following error in the log:

11:37:59.297 T:547876081664 ERROR: Control 52 in window 10025 has been asked to focus, but it can't 11:38:01.307 T:547088232672 WARNING: [kodiswift] No converter provided, unicode should be used, but returning str value 11:38:01.308 T:547088232672 WARNING: Previous line repeats 1 times. 11:38:01.308 T:547088232672 NOTICE: Logging in with username: xxxxxx and udid: xxxxxxx 11:38:01.861 T:547088232672 NOTICE: Login Successful and got token xxxxxxxx 11:38:02.408 T:547088232672 NOTICE: Successfully got country as BE 11:38:02.413 T:547088232672 NOTICE: [kodiswift] Request for "/" matches rule for function "index" 11:38:03.178 T:547088232672 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: unsupported operand type(s) for *: 'NoneType' and 'int' Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.mubi/addon.py", line 46, in plugin.run() File "/storage/.kodi/addons/script.module.kodiswift/lib/kodiswift/plugin.py", line 307, in run items = self._dispatch(self.request.path) File "/storage/.kodi/addons/script.module.kodiswift/lib/kodiswift/plugin.py", line 326, in _dispatch resp = view_func(**items) File "/storage/.kodi/addons/plugin.video.mubi/addon.py", line 17, in index films = mubi.now_showing() File "/storage/.kodi/addons/plugin.video.mubi/resources/lib/mubi.py", line 131, in now_showing films = [self.get_film_metadata(film) for film in json.loads(self.get_now_showing_json())] File "/storage/.kodi/addons/plugin.video.mubi/resources/lib/mubi.py", line 114, in get_film_metadata rating=film_overview['average_rating'] * 2, # Out of 5, kodi uses 10 TypeError: unsupported operand type(s) for *: 'NoneType' and 'int' -->End of Python script error report<-- 11:38:03.369 T:547876081664 ERROR: GetDirectory - Error getting plugin://plugin.video.mubi/ 11:38:03.373 T:547876081664 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.mubi/) failed

Any info is very appreciated, thank you very much!

cvanaken avatar Nov 28 '17 10:11 cvanaken