2011-07-12, 15:13
about the Archlinux bug:
if you take a look at https://github.com/xbmc/xbmc/blob/master...y.cpp#L402 it seems that handle is set to -1 on purpose in the RunScriptWithParams method, right? so it should be -1.
I noticed that the Chaos Computer Club CCCTV addon works like a charm in archlinux, so after comparing .xbmc/addons/plugin.video.ccctv/default.py and .xbmc/addons/plugin.video.youtube/YouTubeNavigation.py I noticed that ccctv doesn't set the totalItems optional param at all.
Youtube addon uses xbmcplugin like this: xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=url, listitem=listitem, isFolder=True, totalItems=size) as you can see from http://code.google.com/p/youtubexbmc/sou...ion.py#320
Now the size is set to 0 with search and explore. Changing the default to 1 didn't help, so I removed totalItems=size from xbmcplugin.addDirectoryItem call completely.
Now I can search and explore youtube, hooray! '%s/, totalItems=size//g' is the quick and dirty fix for this. And it should work with the other broken plugins too.
The real bug may be somewhere in the https://github.com/xbmc/xbmc/blob/master...in.cpp#L59 maybe the new gcc brings it up, I'm not really a c++ wizard so...
without using totalItems parameter in the xbmcplugin.addDirectoryItem call the items added will invoke StartScript (with a new handle) in the future instead of RunScriptWithParams (which has always the handle -1).
if you take a look at https://github.com/xbmc/xbmc/blob/master...y.cpp#L402 it seems that handle is set to -1 on purpose in the RunScriptWithParams method, right? so it should be -1.
I noticed that the Chaos Computer Club CCCTV addon works like a charm in archlinux, so after comparing .xbmc/addons/plugin.video.ccctv/default.py and .xbmc/addons/plugin.video.youtube/YouTubeNavigation.py I noticed that ccctv doesn't set the totalItems optional param at all.
Youtube addon uses xbmcplugin like this: xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=url, listitem=listitem, isFolder=True, totalItems=size) as you can see from http://code.google.com/p/youtubexbmc/sou...ion.py#320
Now the size is set to 0 with search and explore. Changing the default to 1 didn't help, so I removed totalItems=size from xbmcplugin.addDirectoryItem call completely.
Now I can search and explore youtube, hooray! '%s/, totalItems=size//g' is the quick and dirty fix for this. And it should work with the other broken plugins too.
The real bug may be somewhere in the https://github.com/xbmc/xbmc/blob/master...in.cpp#L59 maybe the new gcc brings it up, I'm not really a c++ wizard so...
without using totalItems parameter in the xbmcplugin.addDirectoryItem call the items added will invoke StartScript (with a new handle) in the future instead of RunScriptWithParams (which has always the handle -1).