update the progress bar of "Loading directory"
#1
Hi,

how do you control and update the progressbar that comes up when you load a directory in a videoplugin. The "Retrieved 2 items" is updating, but not the bar (since it doesn't know how many items it will be fetching).
How do I call for it to update?.

xbmcgui.ControlProgress.setPercent(34)?
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply
#2
When you do the addItem, totalItems=, if you know the number of items.
From the pydocs:
Code:
if not xbmcplugin.addDirectoryItem(int(sys.argv[1]), 'F:\\Trailers\\300.mov', listitem, totalItems=50): break
Reply
#3
Ah, so it wasn't harder than that. Thanks!
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply

Logout Mark Read Team Forum Stats Members Help
update the progress bar of "Loading directory"0