2012-08-19, 00:10
pre-frodo version for nightly xbmc builds:
script.globalsearch-1.0.0.zip
script.globalsearch-1.0.0.zip
00:56:18 T:3016255808 DEBUG: SDLKeyboard: scancode: 49, sym: 0120, unicode: 0000, modifier: 0
00:56:18 T:3016255808 DEBUG: LookupSymAndUnicode - switched to keyboard side
00:56:18 T:3016255808 DEBUG: LookupSymAndUnicode - executing command 'XBMC.VideoLibrary.Search'
00:56:18 T:3016255808 DEBUG: ExecuteXBMCAction : Translating XBMC.VideoLibrary.Search
00:56:18 T:3016255808 DEBUG: ExecuteXBMCAction : To XBMC.VideoLibrary.Search
00:56:18 T:3016255808 INFO: Loading skin file: DialogKeyboard.xml
00:56:18 T:3016255808 DEBUG: ------ Window Init (DialogKeyboard.xml) ------
00:56:23 T:3016255808 DEBUG: SDLKeyboard: scancode: 1c, sym: 0074, unicode: 0074, modifier: 0
00:56:23 T:3016255808 DEBUG: OnKey: t (f054) pressed, trying keyboard action 61812
00:56:23 T:3016255808 DEBUG: SDLKeyboard: scancode: 1a, sym: 0065, unicode: 0065, modifier: 0
00:56:23 T:3016255808 DEBUG: OnKey: e (f045) pressed, trying keyboard action 61797
00:56:24 T:3016255808 DEBUG: SDLKeyboard: scancode: 27, sym: 0073, unicode: 0073, modifier: 0
00:56:24 T:3016255808 DEBUG: OnKey: s (f053) pressed, trying keyboard action 61811
00:56:24 T:3016255808 DEBUG: SDLKeyboard: scancode: 1c, sym: 0074, unicode: 0074, modifier: 0
00:56:24 T:3016255808 DEBUG: OnKey: t (f054) pressed, trying keyboard action 61812
00:56:26 T:3016255808 DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 0
00:56:26 T:3016255808 DEBUG: OnKey: return (f00d) pressed, trying keyboard action 61453
00:56:27 T:3016255808 DEBUG: ------ Window Deinit (DialogKeyboard.xml) ------
00:56:27 T:3016255808 INFO: Loading skin file: DialogProgress.xml
00:56:27 T:3016255808 DEBUG: DialogProgress::StartModal called
00:56:27 T:3016255808 DEBUG: ------ Window Init (DialogProgress.xml) ------
00:56:27 T:3016255808 INFO: Loading skin file: DialogOK.xml
00:56:27 T:3016255808 WARNING: CreateFile, successfuly opened </storage/.xbmc/addons/skin.metropolis/720p/DialogOk.xml> instead of </storage/.xbmc/addons/skin.metropolis/720p/DialogOK.xml>
00:56:27 T:3016255808 DEBUG: ------ Window Init (DialogOK.xml) ------
00:56:27 T:3016255808 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
00:56:35 T:3016255808 DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 0
00:56:35 T:3016255808 DEBUG: OnKey: return (f00d) pressed, action is Select
00:56:35 T:3016255808 DEBUG: ExecuteXBMCAction : Translating PreviousMenu
00:56:35 T:3016255808 DEBUG: ExecuteXBMCAction : To PreviousMenu
00:56:35 T:3016255808 DEBUG: ------ Window Deinit (DialogOK.xml) ------
00:56:35 T:3016255808 DEBUG: ProcessKeyDown - keypress translated by a HID peripheral
00:56:35 T:3016255808 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
00:56:35 T:3016255808 DEBUG: Previous line repeats 3 times.
00:56:35 T:3016255808 DEBUG: OnKey: 0 (f200) pressed, action is
01:00:47 T:3016255808 DEBUG: OnKey: return (f00d) pressed, action is Select
01:00:47 T:3016255808 INFO: initializing python engine.
01:00:47 T:3016255808 DEBUG: new python thread created. id=12
01:00:47 T:2939157312 NOTICE: Thread XBPyThread start, auto delete: false
01:00:47 T:2939157312 DEBUG: Python thread: start processing
01:00:47 T:2939157312 NOTICE: -->Python Interpreter Initialized<--
01:00:47 T:2939157312 DEBUG: Process - The source file to load is /storage/.xbmc/addons/script.globalsearch/default.py
01:00:47 T:2939157312 DEBUG: Process - Setting the Python path to /storage/.xbmc/addons/script.globalsearch:/storage/.xbmc/addons/script.module.xbmcswift/lib:/storage/.xbmc/addons/script.module.simplejson/lib:/storage/.xbmc/addons/scri
pt.module.beautifulsoup/lib:/storage/.xbmc/addons/script.common.plugin.cache/lib:/storage/.xbmc/addons/script.module.simple.downloader/lib:/storage/.xbmc/addons/script.module.parsedom/lib:/storage/.xbmc/addons/script.module.elementtree/l
ib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/PIL:/usr/lib
/python2.7/site-packages/gtk-2.0:
01:00:47 T:2939157312 DEBUG: Process - Entering source directory /storage/.xbmc/addons/script.globalsearch
01:00:47 T:2939157312 DEBUG: Instantiating addon using automatically obtained id of "script.globalsearch" dependent on version 2.0 of the xbmc.python api
01:00:48 T:2939157312 INFO: Loading skin file: DialogKeyboard.xml
01:00:48 T:3016255808 DEBUG: ------ Window Init (DialogKeyboard.xml) ------
01:01:02 T:3016255808 DEBUG: SDLKeyboard: scancode: 1c, sym: 0074, unicode: 0074, modifier: 0
01:01:02 T:3016255808 DEBUG: OnKey: t (f054) pressed, trying keyboard action 61812
01:01:03 T:3016255808 DEBUG: SDLKeyboard: scancode: 1a, sym: 0065, unicode: 0065, modifier: 001:01:03 T:3016255808 DEBUG: OnKey: e (f045) pressed, trying keyboard action 6179701:01:03 T:3016255808 DEBUG: SDLKeyboard: scancode: 27, sym: 0073, unicode: 0073, modifier: 0
01:01:03 T:3016255808 DEBUG: OnKey: s (f053) pressed, trying keyboard action 61811
01:01:04 T:3016255808 DEBUG: SDLKeyboard: scancode: 1c, sym: 0074, unicode: 0074, modifier: 0
01:01:04 T:3016255808 DEBUG: OnKey: t (f054) pressed, trying keyboard action 6181201:01:06 T:3016255808 DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 001:01:06 T:3016255808 DEBUG: OnKey: return (f00d) pressed, trying keyboard action 61453
01:01:07 T:3016255808 DEBUG: ------ Window Deinit (DialogKeyboard.xml) ------
01:01:07 T:2939157312 DEBUG: script.globalsearch: script version 1.0.0 started
01:01:07 T:3016255808 DEBUG: ------ Window Init (/storage/.xbmc/addons/skin.metropolis/720p/script-globalsearch-main.xml) ------
RunScript(script.globalsearch)
(2012-08-23, 11:57)puntloos Wrote: Final update: OK, after digging into some internals I've figured it out.
In the peripherals menu you can adjust what the 'flip to keyboard' and 'flip to remote' actions do. I reassigned 'flip to keyboard' toand presto.Code:RunScript(script.globalsearch)
2 questions:
1/ I have a large library and the script is a bit slow (takes, say, 10 seconds to find everything). Are there ways to speed this up? For example: My D2700 CPU has 4 cores (hyperthreading dualcore), can't we run one sub-search per core? One core searching my Videos, one core searching my Music, the two others cheerleading? (or even betterplit up the music db in 3 bits and search the 3 subparts.)
2/ Parts of the results are slightly garbled. (artist, for example) is shown as M/A/D/O/N/N/A/ ) - this is in the metropolis skin. GlobalSearch or Metropolis' fault?
-M
(2012-08-24, 00:46)ronie Wrote: 1) i know of two things that would speed things up:Actually one feature request there too: It would be great if we could choose the item you want while the script is still searching for more..
- if xbmc would move to python 2.7 (or up) that would speed up the processing of the search results 10x.
- threading... i have not tried it, so can't tell just how much we'd gain from it.
Quote:2) never seen that, not even when i test in Metropolis.
what happens if you try the script in Confluence?
(2012-09-26, 09:16)tinybutstrong Wrote: v0.2.5 is the last Eden version? If yes, it has a weird bug. If user input a blank search (by mistake maybe) it blocks the interface, escape/backspace key take no effect, you need to force close the XBMC process.
(2012-10-14, 19:56)Sranshaft Wrote: It appears this great script doesn't like the changes recently made to JSON. Attached debug log. Using Windows 7, XBMC Frodo Alpha 7 build date 2012-10-07.
http://pastebin.com/MB3vwV9Q
(2012-10-21, 17:09)ronie Wrote: try v1.0.3 (see first post).
i've just updated the code to reflect the latest json-rpc changes.
(2012-10-24, 14:40)Sranshaft Wrote:(2012-10-21, 17:09)ronie Wrote: try v1.0.3 (see first post).
i've just updated the code to reflect the latest json-rpc changes.
Thanks for the update mate. With the latest JSON changes it now loads incredibly fast. The only issue I'm having now is the images for anything video related / music artists aren't being displayed.
Using the XBMCSetup-20121023-2924e3e-master Windows build.
Nothing in the debug log reports an error. Upon installing the latest nightly, XBMC asked to refresh the image cache for videos; maybe an image caching issue?