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 … 8 9 10 11 12 … 20 Next »
NPVR to XBMC File Renaming Utility

 
  • 0 Vote(s) - 0 Average
NPVR to XBMC File Renaming Utility
craigrs84
Offline

Member

Posts: 131
Threads: 27
Joined: Jan 2014
#1
2014-08-23, 05:25 PM (This post was last modified: 2014-09-01, 12:45 AM by craigrs84.)
I'm releasing a utility I created to rename files recorded from NPVR to a format supported by XBMC. It works by scraping the required information from TheTvDB and TheMovieDB. It was designed specifically to work with Zap2It based EPGs such as Schedules Direct or the Microsoft EPG. I'm not sure how well it will work with other types of EPGs. So far it's only been tested against the Microsoft EPG.

It doesn't require an exact match in order for the file renaming to occur. It will try its best to rename the file using fuzzy matching. In some cases it's possible this behavior may cause an incorrect match but I haven't run into any mismatches lately. If a match can't be found it will create NFO files.

Installation:

Note: .net framework 4.5 required

1. Extract the files from the archive and copy them all to c:\pvrscraper\.
2. Edit PvrScraper.exe.config and set the npvrDbPath, xbmcTvPath, and xbmcMoviePath variables to suit your own needs.
[INDENT]a. npvrDbPath - the location of your NPVR SQLite database, usually c:\users\public\npvr\npvr.db3[/INDENT]
[INDENT]b. xbmcTvPath - the folder containing tv shows that XBMC reads from. PvrScraper will move the files to this folder during the renaming process.[/INDENT]
[INDENT]c. xbmcMoviePath - the folder containing movies that XBMC reads from. PvrScaper will move the files to this folder during the renaming process. [/INDENT]

Usage:

Running for a specific OID:
pvrscraper.exe oid <insert oid here>

Re-running for recordings that have failed to match in the past:
pvrscraper.exe failed

Recommended Batch Files:

PostProcessing.bat
"c:\pvrscraper\pvrscraper.exe" oid %3

PostUpdateEPG.bat
"c:\pvrscraper\pvrscraper.exe" failed
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#2
2014-08-23, 05:56 PM
How does this utility handle shows with no matches? I record our local and national news, and since I use XBMC as my only front end, I would like to have those show up as S0x files with the date as the file name. In theory ImageGrabLite does this, but it doesn't always work for me. I wrote a little python script to handle the stuff ImageGrabLite has a problem with, but if this utility handles no match files well I may look at it.
craigrs84
Offline

Member

Posts: 131
Threads: 27
Joined: Jan 2014
#3
2014-08-23, 06:41 PM (This post was last modified: 2014-08-23, 06:51 PM by craigrs84.)
pkscout Wrote:How does this utility handle shows with no matches? I record our local and national news, and since I use XBMC as my only front end, I would like to have those show up as S0x files with the date as the file name. In theory ImageGrabLite does this, but it doesn't always work for me. I wrote a little python script to handle the stuff ImageGrabLite has a problem with, but if this utility handles no match files well I may look at it.

Currently it's renaming failed TV shows to this format:

TvShowName.yyyy.MM.dd.HHmmssff.ts. It creates an NFO file with the subtitle as the name, if a subtitle exists. If not then it uses the date as the name. This causes them to show up as season -1 in xbmc

Is that what you are wanting?
cfs123
Offline

Junior Member

Posts: 1
Threads: 0
Joined: Nov 2013
#4
2014-08-31, 09:06 PM
Downloaded and started using your nifty little utility for a week or so now and it works well (two thumbs up!) Do have one request for you, can build a process to call another batch post processing file and output a parameter with the path\filename of the new file so that I can then pass it on to the next program in my batch stream to run videoredo to build a project that I then use to verify cuts and strip out commercials? Either that or output in the log file the destination path as well and I can then parse the log to get the path & filename?
craigrs84
Offline

Member

Posts: 131
Threads: 27
Joined: Jan 2014
#5
2014-08-31, 09:41 PM
cfs123 Wrote:Downloaded and started using your nifty little utility for a week or so now and it works well (two thumbs up!) Do have one request for you, can build a process to call another batch post processing file and output a parameter with the path\filename of the new file so that I can then pass it on to the next program in my batch stream to run videoredo to build a project that I then use to verify cuts and strip out commercials? Either that or output in the log file the destination path as well and I can then parse the log to get the path & filename?

Thanks for the feedback. I'll try to look into this and see how feasible it would be.
craigrs84
Offline

Member

Posts: 131
Threads: 27
Joined: Jan 2014
#6
2014-09-01, 12:46 AM
Update: uploaded a new version to fix an encoding bug that could cause some characters to display incorrectly.
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#7
2014-10-03, 02:59 PM
I like this utility, but can you change it to rename all files with the same title name, such as my comskip txt files?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Update NPVR Database with UniqueID element using NextTool ChrisHammond56 7 1,937 2022-08-18, 03:29 AM
Last Post: sub
  SageTV Import Utility mvallevand 97 39,409 2022-04-13, 04:42 PM
Last Post: sDiesel
  VideoConduit - Standalone App to Import Lost TV Recordings into NPVR 27InchSony 54 23,758 2021-12-29, 10:08 PM
Last Post: mvallevand
  M3U to STRM Utility - VOD on Kodi MadBeggar 0 4,364 2021-03-13, 12:24 AM
Last Post: MadBeggar
  RFC Recordings Import Utility mvallevand 24 8,769 2020-05-08, 02:16 PM
Last Post: Graham
  Npvr and IR Blaster Buddha B 11 5,858 2018-11-13, 06:16 PM
Last Post: sub
  Help with batch file CDinger 4 3,384 2017-12-06, 04:34 AM
Last Post: CDinger
  UpdateEPG Batch File for Using GuidePlus GWCowling323 1 3,091 2016-10-07, 10:49 AM
Last Post: Graham
  System Plugin Confused by New NPVR Naming Scheme Lao Pan 1 2,641 2016-09-25, 08:26 AM
Last Post: imilne
  Unified Remote (Android) NPVR custom remote. fuzzweed 5 7,543 2016-08-10, 01:52 AM
Last Post: baj1

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

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

Linear Mode
Threaded Mode