2010-12-07, 06:53
Question for you script folks
I've got a content menu item that should expand out the episodes for tv shows
I'm using the argument as the url so i can parse out the series and season id's, and use those to grab the data in another .py file
It calls expandTvShows.py with the expected argument, however I'm not sure how to get the handle that called the script so that it can update the information in the UI with the episodes
The error returned is
20:46:19 T:6028 M:4294967295 ERROR: XFILE::CPluginDirectory::AddItem - called with an invalid handle.
Which makes sense in that i was just doing int(sys.argv[1]) (which is a url now)
So what is the handle and how do I pass that off to the other script so that I can list a new directory of the episode items??
Thanks in advance.. Fekker
I've got a content menu item that should expand out the episodes for tv shows
I'm using the argument as the url so i can parse out the series and season id's, and use those to grab the data in another .py file
Code:
#tv show, expand episodes link
if(curX.TvShow):
argsTvShowExpand = str(curX.TvShowLink)
#print argsTvShowExpand
runnerTvShow = "XBMC.RunScript(special://home/addons/plugin.video.xbmcflicks/resources/lib/expandTvShows.py, " + argsTvShowExpand + ")"
commands.append(( 'Expand Episodes', runnerTvShow, ))
It calls expandTvShows.py with the expected argument, however I'm not sure how to get the handle that called the script so that it can update the information in the UI with the episodes
The error returned is
20:46:19 T:6028 M:4294967295 ERROR: XFILE::CPluginDirectory::AddItem - called with an invalid handle.
Which makes sense in that i was just doing int(sys.argv[1]) (which is a url now)
So what is the handle and how do I pass that off to the other script so that I can list a new directory of the episode items??
Thanks in advance.. Fekker