2015-06-08, 23:51
(2015-06-08, 22:02)rob_webset Wrote:This endpoint is an URI. You have to call it url encoded(2015-06-08, 18:57)bromix Wrote:(2015-06-08, 17:25)capfuturo Wrote: Hello Bromix, I am testing Rob's support for YouTube add-on in VideoExtras, so far so good and with room for improvement (mainly handling a way to better exiting youtube back into VideoExtras and the dowload option, the later I believe is being taken care of in your to do list.
Hope you don't mind a question for you: would you be able to expose similar end points ("Search" interface) for this Vimeo add-on in Github? If so, then support for Vimeo may be viable in VideoExtras too.
http://forum.kodi.tv/showthread.php?tid=...pid2023955
Done
Version 4.1.3 (2015-06-08)
ADD: Endpoints search
UPD: code cleaning
Hi bromix,
Thanks for doing that - just playing about with calling the interface - I did notice that if you send it non ascii characters then it generates a script error.
It's not a big deal, as I can always strip out those characters before passing it, but noticed that your YouTube addon handles them OK to thought I'd post it in case you were not aware of this.
Code:20:55:10 T:2968 NOTICE: [plugin.video.vimeo] Running: Vimeo (4.1.2) on Helix (14.0) with Python 2.7.8
20:55:10 T:2968 DEBUG: [plugin.video.vimeo] Path: "/search/
20:55:10 T:2968 DEBUG: [plugin.video.vimeo] Params: "{'q': u'The Breakfast Club \xe9 Extras'}"
20:55:10 T:2968 DEBUG: [plugin.video.vimeo] Setting content-type: "episodes" for "/search/"
20:55:10 T:2968 ERROR: C:\XBMC\Kodi-14-Helix\system\python\Lib\urllib.py:1288: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return ''.join(map(quoter, s))
20:55:10 T:2968 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: u'\xe9'
...
File "C:\XBMC\Kodi-14-Helix\portable_data\addons\plugin.video.vimeo\resources\lib\vimeo\client.py", line 442, in _percent_encode
result = urllib.quote_plus(s).replace('+', '%20').replace('*', '%2A').replace('%7E', '~')
Thanks
Rob