![]() |
|
Directory Watchdog - Background file monitor service to initiate auto update library? - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Feature Suggestions (/forumdisplay.php?fid=9) +--- Thread: Directory Watchdog - Background file monitor service to initiate auto update library? (/showthread.php?tid=66348) |
- althekiller - 2010-01-15 19:03 There was JUST a thread on this last week where the pros and cons were layed out. Please search. - CrashX - 2010-01-15 19:20 althekiller Wrote:There was JUST a thread on this last week where the pros and cons were layed out. Please search. Are you referring to this thread: http://forum.xbmc.org/showthread.php?tid=66348&highlight=Watchdog Last I heard you guys were looking for way cross platform way to do, so that is why I started this development thread. - outleradam - 2010-01-15 20:38 *.py soloution do not work on Camelot for linux/live. - robweber - 2010-01-15 21:37 There are some pretty good ideas on this thread for using python scripts to update the library on a timer. One towards the bottom even has it set to run at a time (like 6pm) rather then a countdown timer. This might work even better for most people so you can set it to a time when you know XBMC won't be in the middle of another task (like watching something) and the library can update then. http://forum.xbmc.org/showthread.php?tid=64893&page=2 - firnsy - 2010-01-16 01:37 CrashX Wrote:Anyone know how to do this linux ? Inotify. Not sure if there's a successor to this but it does what you're after. - althekiller - 2010-01-16 01:57 I think there's a different thread where I explained the more ideal solution...maybe it was on trac, I get all of this internet shit mixed up. We aren't looking for anything, we know whats out there and everything is a pretty crappy solution. The cross platform thing isn't that big a deal since we can "just" abstract what we need in a wrapper class. The bigger problem is that none of this stuff is guaranteed to behave the same on all file systems. This is especially the case for network file systems, which, let's face it, is all that really matters. - althekiller - 2010-01-16 02:00 Found it. http://forum.xbmc.org/showthread.php?tid=66668 - havix - 2010-01-16 18:10 This is an essential feature that almost every other htpc frontend has. This prevents me from using the library feature very often because I never know if it's up to date. I think a filesystem watcher is the way to go. I've dealt with Meedio and it's library updating on a schedule and you still end up with items not being sure if that new episode or movie was downloaded before the last library scan happened. In regards to issues people see with implementing this I pose the question of how are all the other htpc apps doing this and who has the best solution? - AndyE - 2010-01-16 23:31 havix Wrote:This is an essential feature that almost every other htpc frontend has. This prevents me from using the library feature very often because I never know if it's up to date. I think a filesystem watcher is the way to go. I've dealt with Meedio and it's library updating on a schedule and you still end up with items not being sure if that new episode or movie was downloaded before the last library scan happened. Most media centres are not cross platform Most media centres are not efficient over the network or do not watch directories over the network. In fact, if you say that most htpcs have this feature, please show us one with a good directory watcher that works with SMB sources - CrashX - 2010-01-17 00:19 althekiller Wrote:I think there's a different thread where I explained the more ideal solution...maybe it was on trac, I get all of this internet shit mixed up. Yup you correct the api probably won't work too well with network sources. Another way I can think of is to let xbmc update library during these conditions: 1) Idle 2) Playing video Both conditions, the cpu is pretty much doing nothing anyways. |