2011-02-11, 17:22
Background: PseudoTV requires some basic information before it begins in order to run properly. Primarily, this is the duration, TV show name, episode name, and plot of any video file that's being used. In order to do this, I use the JSON command GetDirectory in order to determine the files selected by a smart playlist. I then do individual SQL commands in order to gather the rest of the information. The JSON command (in one case) takes about 10 seconds to return the file names. The SQL queries take much longer (not to mention the whole being deprecated issue).
When a skin opens the video playlist window (MyVideoPlaylist.xml) the list is populated with all of the files and all of the information about those files in a matter of seconds.
My question: how can a script get the same information that is populated in the skin's list control? To put it another way, I want to get all of the information about a list of files in only a few seconds.
I found a crappy workaround involving opening the MyVideoPlaylist file from the script, scrolling through it, and grabbing the info labels. Needless to say, this isn't a great solution. Are there any better ways to do this?
When a skin opens the video playlist window (MyVideoPlaylist.xml) the list is populated with all of the files and all of the information about those files in a matter of seconds.
My question: how can a script get the same information that is populated in the skin's list control? To put it another way, I want to get all of the information about a list of files in only a few seconds.
I found a crappy workaround involving opening the MyVideoPlaylist file from the script, scrolling through it, and grabbing the info labels. Needless to say, this isn't a great solution. Are there any better ways to do this?