2010-10-07, 15:56
Montellese Wrote:It's in the settings under "Video" --> "Library" I think (not at home so can't access XBMC right now but it's definitly somewhere in the "Video" settings).
Thanks. It seems to have done the right thing, and not removed any of my myth-added content. It takes too long to run for what I need to do to synchronize myth <->xbmc regularly though.
On that topic I had a thought:
Enhance 'Scan for changes' to detect missing content as well as new content.
It then becomes very fast to run 'Scan for changes' on a myth source, since the hash prevents scanning if nothing has changed.
I then just need a smart way to run 'Scan for changes'
The simplest is probably to just do a scan whenever the Video library is accessed (maybe in a background thread)
Alternatively we could set it up to run periodically (this could be done with a python script i guess, or we could actually code something that does a scan whenever the cmyth cache is refreshed
Next would be to grab the next scheduled recording time and to set a trigger to scan once that happens.
I looked into the myth python bindings, and there isn't any method to set a trigger when an action happens (like record or delete), but if we really want that we could set up a mysql trigger taht will set a bit whenever the 'recorded' table is modified. It would mean that xbmc would need to connect to myth's sql db though, and would involve some sort of manual setup, so it is not really an ideal path.