Kodi Community Forum

Full Version: Refreshing plugin directories
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

Disclaimer: I know nothing Smile
Was hoping you guys could help me with one or two things:


1) Is there a way to NOT have XBMC cache a plugin directory, that is make XBMC reload the contents each time the directory is entered, so that (for example) when you are watching an item in the directory and reach the end you get thrown back into the directory the content is refreshed.

2) Is there a way to update the contents of a directory at a fixed interval, e.g. once every 5 minutes?

This is for a plugin I am making where (amongst other things) there is a live wmv stream that is somtimes available and somtimes not (depends on the time of day) but if you try the link from within XBMC and the stream isnĀ“t live, XBMC freezes, so it is importat that the directory is up to date...

Thanks in advance!

/AG
1. Endofdirectory has a cachetodisk option. Set it to False
2. Container.refresh() will update the listing, so all you need to do it code up the scheduler.
Thanks for your help, much appreciated!

/AG