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 - Aenima99x - 2012-05-22

Hey Takoi - seems that the add-on has somewhat stopped working for me. You can see that the log snip shows it detecting the new movie that was downloaded, but it never actually updates the library. If I manually update the library, then the movie shows up. Any ideas?
Quote:19:30:31 T:2731531072 DEBUG: service.watchdog: <created> </home/xbmc/Media/Movies/Madison County>
19:30:31 T:2731531072 DEBUG: service.watchdog: <created> </home/xbmc/Media/Movies/Madison County/Madison County..dvd.DVD-Rip.avi>
19:30:31 T:2900351808 DEBUG: webserver: request received for /xbmcCmds/xbmcHttp/?parameter=Notification%28CouchPotato%2C+Downloaded+Madison+County+%28DVD-Rip%29%29&command=ExecBuiltIn
19:30:31 T:3008190848 DEBUG: HttpApi Start command: ExecBuiltIn paras: ExecBuiltIn; Notification(CouchPotato, Downloaded Madison County (DVD-Rip))
19:30:31 T:3008190848 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
19:30:31 T:3008190848 DEBUG: Alloc resources: 0.00ms (0.00 ms skin load)
19:30:31 T:2900351808 DEBUG: webserver: request received for /xbmcCmds/xbmcHttp/?parameter=XBMC.updatelibrary%28video%29&command=ExecBuiltIn
19:30:31 T:3008190848 DEBUG: HttpApi Start command: ExecBuiltIn paras: ExecBuiltIn; XBMC.updatelibrary(video)
19:30:31 T:2637159232 NOTICE: Thread CVideoInfoScanner start, auto delete: false
19:30:31 T:2637159232 NOTICE: VideoInfoScanner: Starting scan ..
9:30:31 T:2637159232 DEBUG: VideoInfoScanner: Rescanning dir '/home/xbmc/Media/Movies/' due to change (B613048B65E5A9AC4B2A45F4F7A568E5 != C4FC8503E4B78175DB9CA41455649E9B)
19:30:32 T:2731531072 DEBUG: service.watchdog: <created> </home/xbmc/Media/Movies/Madison County/movie.nfo>
19:30:32 T:2731531072 DEBUG: service.watchdog: <modified> </home/xbmc/Media/Movies/Madison County/movie.nfo>
19:30:32 T:2731531072 DEBUG: service.watchdog: <created> </home/xbmc/Media/Movies/Madison County/movie.tbn>
19:30:32 T:2731531072 DEBUG: service.watchdog: <modified> </home/xbmc/Media/Movies/Madison County/movie.tbn>
19:30:32 T:2645551936 DEBUG: service.watchdog: scanning video library
19:30:32 T:2637159232 DEBUG: VideoInfoScanner: No (new) information was found in dir /home/xbmc/Media/Movies/
19:30:32 T:2637159232 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
19:30:32 T:2637159232 DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
19:30:32 T:2637159232 DEBUG: GOT ANNOUNCEMENT, type: 8, from xbmc, message OnScanFinished
19:30:32 T:2637159232 DEBUG: Thread CVideoInfoScanner 2637159232 terminating



RE: [RELEASE] Library watchdog - Aenima99x - 2012-05-22

Hmm maybe scratch that.....I turned off the CouchPotato notifications and it seems to be working again.


RE: [RELEASE] Library watchdog - tarff - 2012-05-24

I just found this addon and was keen to try it. However I keep getting a script error.

http://pastebin.com/Z88LKJQ0

I'm running Eden final on an atv2.

Thanks


RE: [RELEASE] Library watchdog - takoi - 2012-05-24

(2012-05-24, 11:35)tarff Wrote: I just found this addon and was keen to try it. However I keep getting a script error.

http://pastebin.com/Z88LKJQ0

I'm running Eden final on an atv2.

Thanks
It appears to be parts missing from python runtime on ios. There are other addons with the same problem. Nothing I can do about it for Eden, sorry, however there's a fix pending here: https://github.com/xbmc/xbmc/pull/969 , which should make this addon work on ios in future builds.



RE: [RELEASE] Library watchdog - lorden - 2012-05-29

Hello,

I installed the watchdog and added a file in my movies but it didn't get picked up.

My server is a slackware linux based server
My frontend is openelec

I am using Samba for sharing

In the videos "Files" I have the SMB mounted and selected.

I did a tail on the xbmc.log file and put another file and absolutely nothing turned up. Your help would be appreciated.




RE: [RELEASE] Library watchdog - takoi - 2012-05-29

(2012-05-29, 20:25)lorden Wrote: Hello,

I installed the watchdog and added a file in my movies but it didn't get picked up.

My server is a slackware linux based server
My frontend is openelec

I am using Samba for sharing

In the videos "Files" I have the SMB mounted and selected.

I did a tail on the xbmc.log file and put another file and absolutely nothing turned up. Your help would be appreciated.

Have you selected polling as method in addon settings? This is required for remote file systems. Also, the shares must be mounted in os.




RE: [RELEASE] Library watchdog - lorden - 2012-05-30

(2012-05-29, 22:10)takoi Wrote:
(2012-05-29, 20:25)lorden Wrote: Hello,

I installed the watchdog and added a file in my movies but it didn't get picked up.

My server is a slackware linux based server
My frontend is openelec

I am using Samba for sharing

In the videos "Files" I have the SMB mounted and selected.

I did a tail on the xbmc.log file and put another file and absolutely nothing turned up. Your help would be appreciated.

Have you selected polling as method in addon settings? This is required for remote file systems. Also, the shares must be mounted in os.

Thanks, I had a feeling it was that.

I read in your other posts that polling puts a strain on the hard drive. The Frontend drive or the server drive?

I have a server with 8 hard drives and they are spun down when not in use. The directory structure is cached and when i request to access a folder the right drive wakes up as oppose to all of them, I imagine this polling will keep the drives up all the time?




RE: [RELEASE] Library watchdog - takoi - 2012-05-31

(2012-05-30, 01:53)lorden Wrote:
(2012-05-29, 22:10)takoi Wrote:
(2012-05-29, 20:25)lorden Wrote: Hello,

I installed the watchdog and added a file in my movies but it didn't get picked up.

My server is a slackware linux based server
My frontend is openelec

I am using Samba for sharing

In the videos "Files" I have the SMB mounted and selected.

I did a tail on the xbmc.log file and put another file and absolutely nothing turned up. Your help would be appreciated.

Have you selected polling as method in addon settings? This is required for remote file systems. Also, the shares must be mounted in os.
Thanks, I had a feeling it was that.

I read in your other posts that polling puts a strain on the hard drive. The Frontend drive or the server drive?

I have a server with 8 hard drives and they are spun down when not in use. The directory structure is cached and when i request to access a folder the right drive wakes up as oppose to all of them, I imagine this polling will keep the drives up all the time?
Drives on server. Exactly when and how much will be read from drives I cant answer. It's highly dependent on os and filesystem, but yes, generally the i/o operations im doing are cached. From my experience, testing on a few TBs of files, a single snapshot takes about a second, which is obviously cached. You should just try and see if it works for you.. If you can, you should also check out the 'only watch root directory' option. It will improve performance a lot, especially on large filesystems.



RE: [RELEASE] Library watchdog - takoi - 2012-06-09

(2012-05-14, 13:42)argh! Wrote: 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.
I encountered similar issue. Turned out to be sabnzbd writing temporary data to a directory that is also a media source in xbmc. Could it be some application you have that continuously creates new files? (normal file download, like bit-torrent, shouldn't cause this).
Enabling debugging and checking the log will show all the events and which files triggered them.


RE: [RELEASE] Library watchdog - ashani - 2012-06-22

Hello, does this plugin works in xbmc frodo alpha builds?

also how i can mount the network shares? so that this plugins will monitor them. my files are on local nas on smb shares.


RE: [RELEASE] Library watchdog - Aenima99x - 2012-06-23

The plugin works fine for me and I update git/compile nightly.


RE: [RELEASE] Library watchdog - takoi - 2012-06-27

(2012-06-22, 22:16)ashani Wrote: also how i can mount the network shares? so that this plugins will monitor them. my files are on local nas on smb shares.

Depends on what os you're using. This should be pretty well-documented. The point is that you have to set it up in the os and then have xbmc use this as the media source, not just use xbmc's 'browse for network location' (or something like that). This limitation will be gone in the future though.


RE: [RELEASE] Library watchdog - idlehands - 2012-07-15

Just some clarification:
If I use the xbmc browse nfs to add in sources, this plugin won't see new files as they are added to those sources?

If I manually mount NFS on XBMC start, and point xbmc to those mountpoints as a local fs this will work? Or only if it's samba?



RE: [RELEASE] Library watchdog - takoi - 2012-07-16

(2012-07-15, 23:52)idlehands Wrote: Just some clarification:
If I use the xbmc browse nfs to add in sources, this plugin won't see new files as they are added to those sources?

If I manually mount NFS on XBMC start, and point xbmc to those mountpoints as a local fs this will work? Or only if it's samba?

That is correct. The protocol doesn't matter. The problem is that when you add a remote share directly in xbmc, xbmc just pass the url to the script. (Again: in next release you wont have to do this PR1062)




RE: [RELEASE] Library watchdog - idlehands - 2012-07-16

That's awesome. I'm playing with openelec these days so, will either have to go back to xbmcbuntu, or wait for this feature to use it.
Thanks!