NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 … 10 11 12 13 14 … 20 Next »
ImageGrabLite -- Add automatic XBMC scan for new content ?

 
  • 0 Vote(s) - 0 Average
ImageGrabLite -- Add automatic XBMC scan for new content ?
msmith8228
Offline

Junior Member

Posts: 39
Threads: 12
Joined: Jun 2012
#1
2013-08-20, 06:37 PM
Is there any way to get IGL to automatically kick off a XBMC "scan for new content" after a TV show recording has been completed and renamed as part of the post processing sequence?

I want to automatically start a XBMC "scan for new content" rather that a XBMC "full library update" -- a full library update can take a lot of time on a large database and all "watched status" is lost -- whereas a "scan for new content" can be targeted for a specific show only, runs in a few seconds and keeps the previously watched status of earlier shows intact.

I know this is possible as a program called Sickbeard can auto launch a specific XBMC scan for new content when a TV web file has been downloaded from the internet using a nzb download program called SABnzbd. The process is quite automatic -- when a new TV episode is available on the internet it is automatically downloaded, unpacked, renamed and moved to a XBMC file location and then the final step in the automatic process is to kick off the XBMC scan for new content for the specific TV show -- to get it recognized in the XBMC database.

I was wondering if would be possible to provide a similar last step in the IGL process to get newly recorded and renamed TV show files into the XBMC database. The Sickbeard program uses a Python script to run and control this XBMC process. I found the code for this posted on the internet but I am completely useless at Python programming and have no idea as to how to integrate it with IGL or as part of an additional post processing process step for NextPVR.

If I understand it clearly it is quite easy to kick off a XBMC "full library update" from within a batch file (using a built in command in Eventghost) but it is somewhat more difficult to get XBMC to start a targeted "scan for new content". The first step involves querying XBMC for the location in its database for a specific TV show -- and then using that location along with the name of the new TV show episode to be added -- start the specific "scan for new content".

Any ideas as to how this can be added to NPVR + IGL ?

Michael
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#2
2013-08-20, 08:34 PM
It likely is possible via a jsonrpc call to VideoLibrary.Scan in XBMC from curl/wget in your PostProcessing.bat and the proper use of %~dp1

Martin
msmith8228
Offline

Junior Member

Posts: 39
Threads: 12
Joined: Jun 2012
#3
2013-08-23, 05:47 PM
Martin:

I did some experimenting with wget and from what I can find I can only kick off a full XBMC "library update" which is not the objective here -- can you point me to any information that will show me exactly how to start a XBMC "scan for new content" using the file name for the targeted NPVR file that has just been renamed by your utility?

Michael
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#4
2013-08-23, 09:58 PM
msmith8228 Wrote:Martin:

I did some experimenting with wget and from what I can find I can only kick off a full XBMC "library update" which is not the objective here -- can you point me to any information that will show me exactly how to start a XBMC "scan for new content" using the file name for the targeted NPVR file that has just been renamed by your utility?

Michael

Search the spec, param 1 is the directory you want to scan.

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#5
2014-05-18, 03:20 AM
I tried for a number of days to get a curl call to work properly for a directory specific scan and finally gave up. Something in the way the path is formatted when passing the path of the directory (as derived from parsing %1) caused a JSON parse error. So what 1 line in a batch file couldn't do, a few hundred lines of python code could. Wink

https://github.com/pkscout/trigger.xbmcscan

or direct download of zip:

https://github.com/pkscout/trigger.xbmcs...master.zip

There's a complete read me with installation and usage instructions. This script also allows you to rename files again in a VERY simple way and add a .nfo file for the episode. That stuff is in there mostly because imageGrabLite never seemed to consistently rename and add .nfo files for my local and national news. I hope this is useful to someone. It's been really useful for me to get XBMC and NextPVR to integrate well.
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#6
2014-05-18, 07:37 PM
If you happened to download the script between yesterday and now, you might want to download it again. The script will now take a json file (see readme.txt for format) that has a list of episodes and use the information to rename files using the show.SxxExx.title.ext format. I added this because it looks like imageGrabLite can't find shows on thetvdb.com if the episode doesn't have a title *and* the air date on thetvdb.com doesn't match the record date. In the Flesh on BBC America happens to fall into this category for me.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#7
2014-05-18, 09:47 PM
pkscout Wrote:I added this because it looks like imageGrabLite can't find shows on thetvdb.com if the episode doesn't have a title *and* the air date on thetvdb.com doesn't match the record date. In the Flesh on BBC America happens to fall into this category for me.

Actually that's an issue in iGL it supposed to match on original air date with --zap2it, but that logic wasn't activated when there was no subtitle. I've fixed it for the next update.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Automatic movie recording based on existing libraries daneo 10 5,049 2020-04-14, 08:02 PM
Last Post: daneo
  imageGrabLite update mvallevand 20 13,655 2020-04-04, 02:42 AM
Last Post: jksmurf
  ImageGrabLite "Read Error Object reference not set to an instance of an object." mjccox 6 5,096 2017-04-11, 07:07 AM
Last Post: rinomasaya
  imageGrabLite episode rename (Super Why) sosuke3 4 3,353 2016-11-24, 10:38 PM
Last Post: sosuke3
  ImageGrabLite and the ampersand ttfitz 8 4,840 2016-05-26, 11:56 PM
Last Post: JavaWiz
  Imagegrablite and NCIS Los Angleles/New Orleans robokd 5 4,011 2016-03-02, 02:40 PM
Last Post: mvallevand
  ImageGrabLite Issues bigjess007 11 7,267 2016-01-08, 01:13 PM
Last Post: jksmurf
  ImageGrabLite Setup hootie318 8 5,882 2015-11-28, 11:32 PM
Last Post: pBS
  Imagegrablite renaming of continuation episode jghanisco 5 3,376 2015-11-26, 10:25 PM
Last Post: mvallevand
  ImageGrabLite problem with new Daily Show ttfitz 5 3,118 2015-11-17, 11:48 PM
Last Post: ttfitz

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode