2016-03-15, 02:06
(2016-03-15, 00:11)Guilouz Wrote: [ -> ]I have this error when I use youtube search function with artists :
Code:23:14:35 T:123145318555648 DEBUG: script.extendedinfo: None
23:14:35 T:123145318555648 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: list indices must be integers, not str
Traceback (most recent call last):
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/plugin.py", line 110, in <module>
Main()
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/plugin.py", line 21, in __init__
listitems = start_info_actions(info, self.params)
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/resources/lib/process.py", line 220, in start_info_actions
orderby=params.get("orderby", "relevance"))
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/resources/lib/YouTube.py", line 148, in search
listitems = handle_videos(results["items"], extended=extended)
TypeError: list indices must be integers, not str
-->End of Python script error report<--
23:14:35 T:140735249522688 DEBUG: ------ Window Init (DialogNotification.xml) ------
23:14:35 T:140735249522688 DEBUG: Window DialogNotification.xml was already loaded
23:14:35 T:140735249522688 DEBUG: Alloc resources: 0.00ms
23:14:35 T:123145318555648 INFO: Python script stopped
23:14:35 T:123145320701952 DEBUG: script.extendedinfo: Exception: Could not get new JSON data from https://www.googleapis.com/youtube/v3/search?maxResults=40&q=Avicii+Musique&part=id%2Csnippet&key=AIzaSyB-BOZ_o09NLVwq_lMskvvj1olDkFI4JK0&type=video&order=relevance. Tryin to fallback to cache
23:14:35 T:123145318555648 DEBUG: Thread LanguageInvoker 123145318555648 terminating
23:14:35 T:123145320701952 DEBUG: script.extendedinfo: None
23:14:35 T:123145320701952 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: list indices must be integers, not str
Traceback (most recent call last):
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/plugin.py", line 110, in <module>
Main()
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/plugin.py", line 21, in __init__
listitems = start_info_actions(info, self.params)
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/resources/lib/process.py", line 220, in start_info_actions
orderby=params.get("orderby", "relevance"))
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.extendedinfo/resources/lib/YouTube.py", line 148, in search
listitems = handle_videos(results["items"], extended=extended)
TypeError: list indices must be integers, not str
-->End of Python script error report<--
23:14:35 T:123145316945920 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
23:14:35 T:123145316945920 ERROR: GetDirectory - Error getting plugin://script.extendedinfo/?info=youtubesearch&&id="Avicii" Album
23:14:35 T:123145320701952 INFO: Python script stopped
23:14:35 T:123145320701952 DEBUG: Thread LanguageInvoker 123145320701952 terminating
23:14:35 T:123145319628800 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
23:14:35 T:123145319628800 ERROR: GetDirectory - Error getting plugin://script.extendedinfo/?info=youtubesearch&&id="Avicii" Musique
23:14:38 T:123145327677440 DEBUG: Thread MusicFileCounter 123145327677440 terminating
23:14:38 T:123145320165376 NOTICE: My Music: Scanning for music info using worker thread, operation took 00:10
23:14:38 T:123145320165376 DEBUG: Process - Finished scan
should be fixed with https://github.com/phil65/script.extende...8ebf71c81a