[RELEASE] Library watchdog

  Thread Rating:
  • 4 Vote(s) - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
steve1977 Offline
Posting Freak
Posts: 2,081
Joined: Dec 2006
Reputation: 0
Post: #661
(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!!!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
wheemer Offline
Junior Member
Posts: 14
Joined: Mar 2012
Reputation: 0
Post: #662
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.
find quote
wheemer Offline
Junior Member
Posts: 14
Joined: Mar 2012
Reputation: 0
Post: #663
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
find quote
mason Offline
Fan
Posts: 315
Joined: Sep 2008
Reputation: 0
Location: Germany
Post: #664
@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.
find quote
takoi Offline
Team-Kodi Member
Posts: 923
Joined: Oct 2009
Reputation: 18
Location: Norway
Post: #665
(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)
find quote
wheemer Offline
Junior Member
Posts: 14
Joined: Mar 2012
Reputation: 0
Post: #666
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?
find quote
Pluto30306 Offline
Junior Member
Posts: 22
Joined: Aug 2014
Reputation: 1
Post: #667
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
find quote
wheemer Offline
Junior Member
Posts: 14
Joined: Mar 2012
Reputation: 0
Post: #668
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.
find quote
wheemer Offline
Junior Member
Posts: 14
Joined: Mar 2012
Reputation: 0
Post: #669
I have installed 14.2 and after reimporting my library I am happy to report it is properly watching my folders, including my multipath.
find quote
Post Reply