Post Processing Scripts ala Sab

I just came up with a script to trigger incremental updates to my Popcorn Hour Jukebox in Sabnzbd. Unfortuantely I can’t use it with NZBDrone and NZBDrone has no support for updating Oversight.

Is this something that could be added, the same outputs as Sab would be good (i.e. final location path). That way you could trigger updates in libraries not fully supported by NZBDrone.

@RXP said:
I just came up with a script to trigger incremental updates to my Popcorn Hour Jukebox in Sabnzbd. Unfortuantely I can’t use it with NZBDrone and NZBDrone has no support for updating Oversight.

Is this something that could be added, the same outputs as Sab would be good (i.e. final location path). That way you could trigger updates in libraries not fully supported by NZBDrone.

We have never considered adding support for post processing scripts like SAB, I’d personally prefer to have native support for PCH Jukebox, the same as we do for XBMC and Plex, but I don’t have or have access to one to do any testing.

Added two cards to Trello:

PP Scripts: https://trello.com/c/mCJyYeZl/122-custom-notifications-similar-to-sab-post-processing-scripts
PCH Jukebox: https://trello.com/c/JdDZFkHA/121-support-for-popcorn-hour-jukebox

I can help with that as I wasted about 8 hours trouble shooting the script I wrote!

So the Jukebox I was refering to has a wiki (https://code.google.com/p/oversight/wiki/IncrementalScans), you can trigger incremental scans by just loading the URL as described in the wiki.

All it requires is the path that the file was downloaded to and it does the rest (scraping etc.) You just need to pass the path in a specific format. For example on my setup Sab downloads TV shows to:

V:\MediaShares\TV\Continuum\Season 01\

So this would need to be sent as:

/opt/sybhttpd/localhost.drives/NETWORK_SHARE/NAS/TV/Continuum/Season 01.

The Popcorn Hour is setup with NAS being the root of V:\MediaShares.

I can help test things if you’d like?

Is there a way to query the PCH for the path it has for a series by tvdb id or name?

For XBMC we ask XBMC to return a list of shows with IDs, names and paths and then tell it to update the appropriate path (the path for the series) and XBMC then scans all subfolders and files. If the series had a bunch of files the scan might be a bit slow (scanning all the season folders), but its still magnitudes faster than scanning all shows and movies.

It sounds like its a pretty straight forward implementation, except for remapping the path in Drone to the path on the PCH, but worst case I guess that could be a field.

No unfortunately Oversight doesn’t work like that. It has no proper API, just URL triggers. It runs on an embeded device so probably doesn’t have the CPU power luxary to do things nicely.

The remapping is the thing that took me the longest, If you go here: http://www.networkedmediatank.com/showthread.php?tid=67768 there’s a way to remap via the command shell in windows. It basically does a copy replace.

Yeah, the remapping wouldn’t be too hard to do, but might pose an issue if the user has multiple root folders, I’ll give it some thought, but overall this looks pretty easy.