NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
Rename Recording

 
  • 0 Vote(s) - 0 Average
Rename Recording
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#1
2005-02-03, 04:35 AM
Rename Recordings

This is a GBPVR utility application that will take in the full path of a GBPVR recording, and rename
it to the Episode's Sub Title name. If an Episode does not have a sub title, the recording name
stays the same. The physical file name is renamed, as well as the name in the GBPVR database.

So for example:

Las Vegas_20050201_220000.mpg will become
The Count of Montecito.mpg

It will still reside under the Las Vegas folder.

The best way to run this application is as part of the GBPVR PostProcessing.bat file.

Add an entry that looks like this to the the file:

renamerecording %1

Place RenameRecording.exe and RecordingUtil.dll (part of the External Recording Manager 0.1.0. Beta),
in the root GBPVR directory.

You can also run it from the command line:

renamerecording "C:\Tivo\Common\Las Vegas\Las Vegas_20050201_220000.mpg"

Note: I have not tested this with any other Video plugins. If any plugins rely on the original naming convention, then some information those plugins rely on may not work with the renamed file.



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#2
2005-02-06, 04:46 AM
Tipstir,

If you include the command in a file called PostProcessing.bat, it will rename the file after GBPVR has finished recording. Place PostProcessing.bat in your GBPVR root directory, and the following line in the file:

renamerecording %1

After GBPVR finishes recording it runs the PostProcessing.bat file, and Rename Recording will rename the file if it can.

RenameRecording.exe and RecordingUtils.dll will also need to be in the GBPVR root directory.



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#3
2005-02-06, 03:16 PM
You don't need the ERM 0.1.0 beta as I included the necessary DLL in with RenameRecording in the zip file. Also, you don't need XRecord or any of the other video plugin modules. This should work with or without them.

Make sure that you have RecordingUtils.dll, and RenameRecording.exe installed in the same directory that you have GBPVR installed. Not all shows have a sub title and it depends on your source. Not all XMLTV sources provide the sub title information. I'm currently using Zap2It information but getting it as an XMLTV source.

Which directory is GBPVR installed in? You need to place RenameRecording.exe and RecordingUtils.dll in that directory (i.e. C:\Program Files\gbpvr) not the directory that your shows are recorded.

Now in my case I have all my shows recording to C:\Tivo\Common

So if I wanted to convert an episode of Battle Star Galactica so that the filename was the sub title name for the episode, then I would the following from the command prompt:

cd "C:\Program Files\gbpvr"

renamerecording "C:\Tivo\Common\Battlestar Galactica\Battlestar Galactica_20050204_220000.mpg"

Which would give me the following in the Battlestar Galactica folder (if it can find the sub title in the GBPVR database).

You Can't Go Home Again.mpg

Now the episode information has to be still in the GBPVR database otherwise it will not rename the file, it will leave it as is.

If you want to have it run for every recording, then create the PostProcessing.bat file, and put it in the place where you have GBPVR installed (not where you have your recordings go), and put the following command in that file:

renamerecording %1 > rename.log

Next time the PostProcessing.bat file runs, you should get a rename.log file that you can view to see if it found the episode and it's sub title. If it did, then it should tell you what it is going to rename it to.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#4
2005-02-06, 05:21 PM
TipStir, I know it works, because I've been running it for the past 4 days. I'm willing to work with you to figure out why it doesn't run for you.

When you run RenameRecording.exe there should be a RenameRecording.exe.log file created as well. If you can post that log, it will help me track down the problem.

I'm still at 23.13 mainly because of all the little quirks that everybody is having. Don't plan to move up until the next release.

Anyway, if you can post the RenameRecording.exe.log files that will help.



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#5
2005-02-07, 05:15 AM
Haven't tried it yet with .908, and probably won't try it until the next release because of some of the issues, even though .908 has DIVX support for the GO chip sets which I would like to get working on my home system.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-02-08, 03:58 AM
Tipstir, how did you get it working? What was the problem?
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#7
2005-02-08, 06:14 AM
Glad it is working.

I'll probably have a minor update in a dayt. Occasionally it is tossing an exception, and I'm trying to track it down. Seems totaly random right now. 99.9% of the time it is working.
curioffl
Offline

Junior Member

Posts: 22
Threads: 8
Joined: Feb 2005
#8
2005-02-09, 05:27 PM
I get this on a command line test. Mean anything to anyone here?

C:\Program Files\devnz\gbpvr>renamerecording c:\gbpvr\frontline\Frontline_200502
08_22000000.mpg
Argument: c:\gbpvr\frontline\Frontline_20050208_22000000.mpg
Path: c:\gbpvr\frontline\
Title: Frontline_20050208_22000000
New Filename: c:\gbpvr\frontline\The House of Saud.mpg

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at RenameRecording.RenameEpisode.updateScheduleTitle(Int32 progOid, String ne
wTitle)
at RenameRecording.RenameEpisode.Main(String[] args)

Thanks!

curioffl
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#9
2005-02-09, 08:41 PM
Looks like for some reason it isn't finding that episode when it is trying to update it in the Database. I'll see if I can find out why this is happening. I have a new version I'm testing at home that seems to be working better.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#10
2005-02-10, 12:57 AM
Probably sometime this weekend. Want to give it a couple more days of running to see how it goes.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): 1 2 3 4 5 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 398 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 273 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 909 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,394 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,882 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,416 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,630 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,724 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 5,972 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 9,980 2014-12-19, 10:28 PM
Last Post: cbgifford

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

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

Linear Mode
Threaded Mode