[RELEASE] Library watchdog - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: [RELEASE] Library watchdog (/showthread.php?tid=128896) |
RE: [RELEASE] Library watchdog - Hitcher - 2012-05-10 (2012-05-09, 17:29)takoi Wrote:(2012-05-09, 17:20)Hitcher Wrote: Can I ask how exactly it know when files are added or deleted?Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare. So my hard drives will be constantly spinning? RE: [RELEASE] Library watchdog - Aenima99x - 2012-05-10 (2012-05-10, 08:30)Hitcher Wrote:I can't speak for the windows part, but on ubuntu when using iotop and dstat to monitor the activity on my SSD and RAID, I don't see any activity.(2012-05-09, 17:29)takoi Wrote:(2012-05-09, 17:20)Hitcher Wrote: Can I ask how exactly it know when files are added or deleted?Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare. RE: [RELEASE] Library watchdog - takoi - 2012-05-10 (2012-05-10, 16:50)Aenima99x Wrote:(2012-05-10, 08:30)Hitcher Wrote:I can't speak for the windows part, but on ubuntu when using iotop and dstat to monitor the activity on my SSD and RAID, I don't see any activity.(2012-05-09, 17:29)takoi Wrote: Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare. This is correct. It's event based so it won't do anything until you write something to the disk. RE: [RELEASE] Library watchdog - takoi - 2012-05-10 (2012-05-10, 00:58)tinybutstrong Wrote: Hmm got more info this time, check log bellow: Fixed. Should be in repo soon RE: [RELEASE] Library watchdog - tinybutstrong - 2012-05-10 (2012-05-10, 19:51)takoi Wrote: Fixed. Should be in repo soon Now XBMC is crashing on exit, log: http://pastebin.com/QQsCftQc RE: [RELEASE] Library watchdog - takoi - 2012-05-10 (2012-05-10, 20:23)tinybutstrong Wrote:(2012-05-10, 19:51)takoi Wrote: Fixed. Should be in repo soon Just some deamon threads crashing, Im aware of it. But it shouldn't be a problem. Xbmc should exit cleanly. RE: [RELEASE] Library watchdog - tinybutstrong - 2012-05-10 Quick question, what is the difference between method syscall and polling? RE: [RELEASE] Library watchdog - takoi - 2012-05-11 (2012-05-10, 21:59)tinybutstrong Wrote: Quick question, what is the difference between method syscall and polling? I explained the methods used above. Basically, syscall is fast and will use no resources when idle. Polling will constantly check for changes and may hog the disk quite a bit for large directories (e.g 1TB). If you have os mounted network shares you want to watch, you must use polling. Otherwise, you should use syscall. For future reference: the "only watch root directory" option will increase the performance of polling a lot, if you can live with this limitation. RE: [RELEASE] Library watchdog - consin - 2012-05-12 I just discovered the script and was excited to test it. Unfortunately XBMC crashes on exit. Any Idea? Log: http://pastebin.com/m5N1FzVt RE: [RELEASE] Library watchdog - takoi - 2012-05-12 (2012-05-12, 13:24)consin Wrote: I just discovered the script and was excited to test it. Yes, unforgivable bug, i know. I've already fixed this, but Im still waiting for it to be pulled into repo. Either just disable the addon and wait a little bit longer, or download zip and install manually. RE: [RELEASE] Library watchdog - consin - 2012-05-12 Thanks, the new version solves it. Keep up the good work! RE: [RELEASE] Library watchdog - argh! - 2012-05-14 What a nice adn handy add-on. Installed it, looked at my library and POOF, my two new episodes were there, and i hadn't even noticed any CPU/HDD activity, or XBMC slow-down. FYI - Using Win7 x64, Eden, 5400rpm drives Nice work, man. Thank you! EDIT: okay this is odd. Upon first installing and enabling, it found some new shows, and continued to do so without notice, and all was pretty much instant. However on XBMC restart, the "scanning for New Content" bar starts all on its' own, and after stopping it manually, it just starts itself up again. Over and over until i disabole your Add-on. RE: [RELEASE] Library watchdog - FantaXP7 - 2012-05-18 Question, this might be stupid but will this see that there is a new file(s), scrape info/metadata for the file(s), or will it simply prompt and entire library refresh? I am hoping to find a solution that will do the former rather than the latter. Thanks RE: [RELEASE] Library watchdog - takoi - 2012-05-18 (2012-05-18, 19:36)FantaXP7 Wrote: Question, this might be stupid but will this see that there is a new file(s), scrape info/metadata for the file(s), or will it simply prompt and entire library refresh? It will tell xbmc to just scan the entire library. It's because xbmc only allow scanning in a narrower scope, which adds even more technical difficulties. Why? Is global scan a problem? Is it too slow? RE: [RELEASE] Library watchdog - FantaXP7 - 2012-05-19 Just curious as I want to limit the scanning as I have media on a server and to cut down network traffic. Also for many files that have no changes, scanning through them seems redundant. Perhaps little to no issues with this in reality, I just thought it would be ideal to have the new items forced on. Still a good solution thank you. |