2014-05-18, 05:32
I've been using ArgustTV for quite awhile (until the recording system imploded after a reboot and couldn't talk to the tuners anymore). I just switched to NextPVR, and one of the things I really wanted to have back was a way to integrate NextPVR recordings into the main library the way I did with ArgusTV.
It took little doing, but I found a solution that seems to work well, so I thought I'd share.
1- Adding Recording Directories to NextPVR/XBMC
I added a TV Shows directory and Movies directory to NPVR. I then added those two directories as sources in XBMC. Now when I schedule a recording, I tell it in which directory to place the recording.
2- Renaming Files
NextPVR files aren't named in a format XBMC understands. I found a utility called imageGrabLite that will rename those files during post processing:
http://www.gbpvr.com/nwiki/pmwiki.php?n=...geGrabLite
3- Triggering an XBMC Scan
This one ended up being the trickiest, as I could never get a curl call to work during post processing that would trigger a library update just on the directory in which the finished recording resided. So what one line of batch code couldn't do, 100 or so lines of python code did.
https://github.com/pkscout/trigger.xbmcs...master.zip
There's a read me file with the script that will explain how to install it and use it. It does require python 2.7.x or later and the requests module. The script has some additional renaming options for some problematic files (mostly local and national news).
Lastly, here's my NPVR PostProcessing.bat file with the imageGrabLite commands that seem to generate the most success.
I hope someone else finds this useful.
It took little doing, but I found a solution that seems to work well, so I thought I'd share.
1- Adding Recording Directories to NextPVR/XBMC
I added a TV Shows directory and Movies directory to NPVR. I then added those two directories as sources in XBMC. Now when I schedule a recording, I tell it in which directory to place the recording.
2- Renaming Files
NextPVR files aren't named in a format XBMC understands. I found a utility called imageGrabLite that will rename those files during post processing:
http://www.gbpvr.com/nwiki/pmwiki.php?n=...geGrabLite
3- Triggering an XBMC Scan
This one ended up being the trickiest, as I could never get a curl call to work during post processing that would trigger a library update just on the directory in which the finished recording resided. So what one line of batch code couldn't do, 100 or so lines of python code did.
https://github.com/pkscout/trigger.xbmcs...master.zip
There's a read me file with the script that will explain how to install it and use it. It does require python 2.7.x or later and the requests module. The script has some additional renaming options for some problematic files (mostly local and national news).
Lastly, here's my NPVR PostProcessing.bat file with the imageGrabLite commands that seem to generate the most success.
Code:
rem calls imageGrabLite, which renames file to XBMC standard
"C:\Program Files\NPVR\imageGrabLite.exe" --oid %3 --rename --zap2it
rem use python script to generate JSON call to have XBMC update the library from directory of the just converted file
"C:\Python27\python.exe" "C:\CustomApps\trigger.xbmcscan\default.py" %1
I hope someone else finds this useful.