2008-12-29, 20:25
Hi, I have written a script that on keypress fetches the Showtitle/Seasonnumber from the currently highlighted entry in the database - and then uses that information to do a search on a webpage for files related to that information, in the case of the first module of my plugin it is a search for .nzb files on a usenet page, that I then want to be able to pass to sabnzbd for file downloading.
Now what I would like to do - is present the information I have to the user like a plugin would, using xbmcplugin.addDirectoryItem(..). Is there a way to do that from within a script - like create a virtual directory and directly navigate to that, then populate it ?
Only way that came to my mind was: create a plugin in parallel to the script, write the infos the script gets into some file and then call the plugin with activate window and let it read that file and show the results. Doesn't sound like a great way. Is there a way I am overlooking here ? I don't really want to use WindowXML or something similar if I can avoid it, that sounds like alot of code for a simple listing of searchresults - and I have no experience with it.
Now what I would like to do - is present the information I have to the user like a plugin would, using xbmcplugin.addDirectoryItem(..). Is there a way to do that from within a script - like create a virtual directory and directly navigate to that, then populate it ?
Only way that came to my mind was: create a plugin in parallel to the script, write the infos the script gets into some file and then call the plugin with activate window and let it read that file and show the results. Doesn't sound like a great way. Is there a way I am overlooking here ? I don't really want to use WindowXML or something similar if I can avoid it, that sounds like alot of code for a simple listing of searchresults - and I have no experience with it.