2020-02-29, 00:31
(2020-02-27, 00:15)jay.kody Wrote:Yes, "Iceland" exists again (I didn't know that I could 'purchase' it...).(2020-02-26, 07:27)Yubby Wrote: ALSO ! A strange issue has arisen... If you search for "Iceland" you recieve an error (regardless of the 'settings' for resolution):
2020-02-25 21:20:51.913 T:139984090674944 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: 'hls'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.vimeo/addon.py", line 3, in <module>
plugin.run()
File "/storage/.kodi/addons/plugin.video.vimeo/resources/plugin.py", line 95, in run
search(handle, query)
File "/storage/.kodi/addons/plugin.video.vimeo/resources/plugin.py", line 144, in search
collection = listItems.from_collection(api.search(query, "videos"))
File "/storage/.kodi/addons/plugin.video.vimeo/resources/lib/vimeo/api.py", line 99, in search
return self._map_json_to_collection(res)
File "/storage/.kodi/addons/plugin.video.vimeo/resources/lib/vimeo/api.py", line 154, in _map_json_to_collection
video_url = self._extract_url_from_search_response(item.get("play"))
File "/storage/.kodi/addons/plugin.video.vimeo/resources/lib/vimeo/api.py", line 235, in _extract_url_from_search_response
return video_files["hls"]["link"]
KeyError: 'hls'
-->End of Python script error report<--
2020-02-25 21:20:51.982 T:139983438300928 ERROR: GetDirectory - Error getting plugin://plugin.video.vimeo/search/?query=Iceland
2020-02-25 21:20:51.985 T:139985026230464 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vimeo/search/?query=Iceland) failed
2020-02-25 21:22:07.945 T:139984904374016 WARNING: Attempt to use invalid handle -1
That sucks. I love those beautiful videos from Iceland.
Issue confirmed and tracked in: https://github.com/jaylinski/kodi-addon-vimeo/issues/19 (I'll release a fix shortly.)
Now, a possible 'related' issue, is if you search for "Florence", and scroll through the results (I have 20 items per page), when you get to the '3rd' page, and select 'next page', it returns this error...
2020-02-28 14:29:38.669 T:139983427868416 WARNING: Attempt to use invalid handle -1
2020-02-28 14:30:01.527 T:139983147783936 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: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.vimeo/addon.py", line 3, in <module>
plugin.run()
File "/storage/.kodi/addons/plugin.video.vimeo/resources/plugin.py", line 49, in run
collection = listItems.from_collection(api.call(args.get("call")[0]))
File "/storage/.kodi/addons/plugin.video.vimeo/resources/lib/vimeo/api.py", line 93, in call
return self._map_json_to_collection(res)
File "/storage/.kodi/addons/plugin.video.vimeo/resources/lib/vimeo/api.py", line 164, in _map_json_to_collection
video_url = self._extract_url_from_search_response(item.get("play"))
File "/storage/.kodi/addons/plugin.video.vimeo/resources/lib/vimeo/api.py", line 248, in _extract_url_from_search_response
return video_files["hls"]["link"]
TypeError: 'NoneType' object has no attribute '__getitem__'
-->End of Python script error report<--
2020-02-28 14:30:01.625 T:139983184721664 ERROR: GetDirectory - Error getting plugin://plugin.video.vimeo/?action=call&call=%2fvideos%3fper_page%3d20%26total%3d20%26query%3dFlorence%2520-wedding%26fields%3duri%252Cresource_key%252Cname%252Cdescription%252Ctype%252Cduration%252Ccreated_time%252Clocation%252Cbio%252Cstats%252Cuser%252Caccount%252Crelease_time%252Cpictures%252Cmetadata%252Cplay%26page%3d4
2020-02-28 14:30:01.632 T:139985026230464 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vimeo/?action=call&call=%2fvideos%3fper_page%3d20%26total%3d20%26query%3dFlorence%2520-wedding%26fields%3duri%252Cresource_key%252Cname%252Cdescription%252Ctype%252Cduration%252Ccreated_time%252Clocation%252Cbio%252Cstats%252Cuser%252Caccount%252Crelease_time%252Cpictures%252Cmetadata%252Cplay%26page%3d4) failed