Kodi Community Forum
[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 - steve1977 - 2015-02-14

(2012-05-11, 11:48)takoi Wrote:
(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.

Thanks for creating this addon, looks quite exciting! A few questions:

1) All my movies are local, which should allow me to use "syscall", which is the most resource efficient as the disks don't spin. However, I have included my movie folders with smb:// (despite being local) as only this allows me to properly use mysql and access the movies on other clients in our house. Would my set-up still allow me to use sycall?

2) I am using local files only and do not scrape anything directly. The local files (NFO, folder.jpg, etc.) are created outside Kodi. When "just adding" the NFO file, I would assume that watchdog would update the library, but nothing happens as there is no nfo file. Once I later add the nfo file, would it trigger yet another update?

3) Will this only trigger a library update or spot if things have changed? For example, I may later add folder.jpg for art or would manually change the nfo file. Will watchdog spot this change and trigger a refresh of the specific movie?


Thanks in advance!!!


RE: [RELEASE] Library watchdog - wheemer - 2015-02-24

I have the status displayed on startup and it lists my three video folders, however it only says it's watching the first. The second two say "Not Watching"

It's something that happened recently as this plugin was updating my library fine prior.


RE: [RELEASE] Library watchdog - wheemer - 2015-02-24

It's saying my shares do not exist, which obviously they do:

11:14:11 T:2004 DEBUG: [service.watchdog] not watching <smb://Server/Series/>. does not exist
11:14:11 T:2004 DEBUG: [service.watchdog] not watching <smb://Server/Series2/>. does not exist


RE: [RELEASE] Library watchdog - mason - 2015-02-24

@steve1977 as far as I see it (have some kind of similar update) watchdog only monitors over video files, so a change of metadata doesn't trigger an update.


RE: [RELEASE] Library watchdog - takoi - 2015-02-24

(2015-02-24, 18:23)wheemer Wrote: It's saying my shares do not exist, which obviously they do:

11:14:11 T:2004 DEBUG: [service.watchdog] not watching <smb://Server/Series/>. does not exist
11:14:11 T:2004 DEBUG: [service.watchdog] not watching <smb://Server/Series2/>. does not exist
It's not obvious they do. On the contrary. It checks if the folder is reachable on startup and says they are not. The most common source for that problem is that watchdog/kodi is started before server or network is ready. (there's a startup delay option in the settings if you can't solve it properly)


RE: [RELEASE] Library watchdog - wheemer - 2015-02-25

I just meant it was obvious to me. This is the same server that Kodi is running on. The paths are immediately available to watch video from as soon as kodi launches. This message appear everytime I start Kodi even after the computer been on and network working for long.

I am running a nightly version of Kodi so perhaps that has something to do with it?


RE: [RELEASE] Library watchdog - Pluto30306 - 2015-02-25

I'm having the same problem that only 1 external drive is being scanned/watched....but I think the following thread has figured out the problem and the answer is expected to come in 14.2...... http://forum.kodi.tv/showthread.php?tid=218306&page=3


RE: [RELEASE] Library watchdog - wheemer - 2015-02-25

Hmm I would have thought that fix was in 15.0 nightlies that I'm running... But your problem is identical to mine. My one nas drive scans fine.


RE: [RELEASE] Library watchdog - wheemer - 2015-02-26

I have installed 14.2 and after reimporting my library I am happy to report it is properly watching my folders, including my multipath.


RE: [RELEASE] Library watchdog - Solo0815 - 2015-03-08

@takoi:
We are working to run the watchdog.addon on a headless-server together with kodi-Libraryscanner on OMV:
https://github.com/OpenMediaVault-Plugin-Developers/docker-xbmc-server/tree/master/

We made some changes to make your addon run headless (without showing progress):
- added a setting IS_HEADLESS

maybe you can include this in your main version of watchdog?
the changes are here: https://github.com/OpenMediaVault-Plugin-Developers/docker-xbmc-server/tree/master/kodidata/addons/service.watchdog
I don't know, how to make a PR on github Wink sorry
Thx


SQL - Extraze - 2015-03-16

Quick question on SQL database (I tried searching but SQL is 3 chars and search wont work)

if you have multiple machines running and your DB is via SQL, should Watchdog be installed on only 1 of the machines to prevent multiple writes at the same time to the SQL database ?


RE: [RELEASE] Library watchdog - wheemer - 2015-03-16

Yes you only need one machine scanning the library


RE: [RELEASE] Library watchdog - bigzaj - 2015-04-09

Going back to the first post on this...

Should I be concerned with constantly polling my RAID array? Both in terms of wear & tear on HDD and always keeping them spun up (which I guess is better than spinning down and up)...

I'm trying to start capturing quality in file names, esp on upgrades which means I really need Watchdog to keep from going insane, but I'm concerned at the same time with keeping my server active basically 24/7 if I use it.


RE: [RELEASE] Library watchdog - wheemer - 2015-04-10

Has anybody got this addon working in Kodi v15?


RE: [RELEASE] Library watchdog - moreje - 2015-04-15

(2015-04-09, 16:22)bigzaj Wrote: Going back to the first post on this...

Should I be concerned with constantly polling my RAID array? Both in terms of wear & tear on HDD and always keeping them spun up (which I guess is better than spinning down and up)...

I'm trying to start capturing quality in file names, esp on upgrades which means I really need Watchdog to keep from going insane, but I'm concerned at the same time with keeping my server active basically 24/7 if I use it.
Same here.. using watchdog constently access my network folders on my Stora NAS..