[RELEASE] Library watchdog

  Thread Rating:
  • 4 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Aenima99x Offline
Donor
Posts: 1,129
Joined: Aug 2007
Reputation: 8
Location: California
Post: #31
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
find quote
Aenima99x Offline
Donor
Posts: 1,129
Joined: Aug 2007
Reputation: 8
Location: California
Post: #32
Hmm maybe scratch that.....I turned off the CouchPotato notifications and it seems to be working again.
find quote
tarff Offline
Junior Member
Posts: 26
Joined: Feb 2012
Reputation: 1
Post: #33
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
find quote
takoi Offline
Team-Kodi Member
Posts: 838
Joined: Oct 2009
Reputation: 12
Location: Norway
Post: #34
(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.
(This post was last modified: 2012-05-24 13:45 by takoi.)
find quote
lorden Offline
Junior Member
Posts: 30
Joined: Jan 2005
Reputation: 0
Post: #35
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.
find quote
takoi Offline
Team-Kodi Member
Posts: 838
Joined: Oct 2009
Reputation: 12
Location: Norway
Post: #36
(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.
find quote
lorden Offline
Junior Member
Posts: 30
Joined: Jan 2005
Reputation: 0
Post: #37
(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?
find quote
takoi Offline
Team-Kodi Member
Posts: 838
Joined: Oct 2009
Reputation: 12
Location: Norway
Post: #38
(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.
(This post was last modified: 2012-05-31 01:02 by takoi.)
find quote
takoi Offline
Team-Kodi Member
Posts: 838
Joined: Oct 2009
Reputation: 12
Location: Norway
Post: #39
(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.
find quote
ashani Offline
Junior Member
Posts: 23
Joined: Mar 2012
Reputation: 0
Post: #40
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.
find quote
Aenima99x Offline
Donor
Posts: 1,129
Joined: Aug 2007
Reputation: 8
Location: California
Post: #41
The plugin works fine for me and I update git/compile nightly.
find quote
takoi Offline
Team-Kodi Member
Posts: 838
Joined: Oct 2009
Reputation: 12
Location: Norway
Post: #42
(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.
find quote
idlehands Offline
Member
Posts: 87
Joined: Oct 2009
Reputation: 0
Post: #43
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?
find quote
takoi Offline
Team-Kodi Member
Posts: 838
Joined: Oct 2009
Reputation: 12
Location: Norway
Post: #44
(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)
find quote
idlehands Offline
Member
Posts: 87
Joined: Oct 2009
Reputation: 0
Post: #45
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!
find quote
Post Reply