2014-11-21, 21:31
Hello All,
I am one of the developers of XBMB3C (soon to be renamed ) - an AddOn that allows you to use MediaBrowser as the XBMC database.
The MediaBrowser JSON data gets quite heavy when someone has, say, 1000 movies.
What I would like to do is display the first 100, then background process the remaining 900 and update the list.
The PyDocs for both AddDirectoryItem and EndOfDirectory *hint* at the ability to do this, but I can't get it to work.
If I try to do:
The directory is displayed, and the xbmc.sleep does not block the user, however the second end of directory does nothing.
If I try to do:
then the xbmc.sleep blocks the user during the second pass, but the directory DOES update.
What is the right way to do this (if any?)?
xnappo
I am one of the developers of XBMB3C (soon to be renamed ) - an AddOn that allows you to use MediaBrowser as the XBMC database.
The MediaBrowser JSON data gets quite heavy when someone has, say, 1000 movies.
What I would like to do is display the first 100, then background process the remaining 900 and update the list.
The PyDocs for both AddDirectoryItem and EndOfDirectory *hint* at the ability to do this, but I can't get it to work.
If I try to do:
Code:
adddirectoryitem(foo)
endofdirectory
xbmc.sleep(5000) #simulate crunching stuff
adddirectoryitem(bar)
endofdirectory(updateListing=True)
The directory is displayed, and the xbmc.sleep does not block the user, however the second end of directory does nothing.
If I try to do:
Code:
if firstrun
adddirectoryitem(foo)
endofdirectory
firstrun=false
container.refresh
else
xbmc.sleep(5000) #simulate crunching stuff
adddirectoryitem(bar)
endofdirectory(updateListing=True)
What is the right way to do this (if any?)?
xnappo