2014-10-08, 16:23
(2014-10-08, 16:10)tnuc Wrote: sure, anything is allowed in your script, what you do in scrip before sending listitem to core is up to you.
but when you call 'xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=listitem,isFolder=False)' and finish it off with 'xbmcplugin.endOfDirectory(int(sys.argv[1])' thats when core displays the list and your script has ended
so if you want to show a list of subs for user to pick the correct one(if I understood correctly) you do that before calling xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=listitem,isFolder=False) and send the picked one to back to core.
I hope that it helps, otherwise I didnt understand
As far as I can see, Search() function also creates a list of listItems, and this list of items is actually displayed in "Subtitles" interface (so I understand). So how XBMC Core knows, when it needs to display a list of items, and when it needs to handle subtitles URLs from listItems without displaying anything?