2011-10-08, 11:11 AM
I originally posted some of my batch files here. But I've since made quite a few changes. The main one is the ManualRenameRecordings file that I will explain about here. You can download the file from my site here. As before, if it's useful to you, clicking on an ad on my site or using the site search will get me a fraction of a cent from Google!
Now that my PostProcessing.bat only renames files that have a title AND a subtitle. I wanted something to give me control over changing the names of the other recordings that don't have (or need) a subtitle. This can still be used to rename those files after processing as long as they are still referenced in the NextPVR database. It gives you total control to quickly give your recordings sensible names with easy access to the information NextPVR has stored about them. The ManualRenameRecording.bat is my solution to this.
The first job is to allow your video files to easily open in it:-
Once the video has been opened by the batch, it will look-up the subtitle, title and description in the NextPVR database. If it finds a subtitle it will automatically suggest the name "title - subtitle". If you don't want this, just press n and then you can choose what the name will be. If you do want it like that, just press Y! If there is no subtitle found, it will automatically skip to the step below...
The batch will then display the title, subtitle (if there is one) and description and you can write or copy & paste the new filename in. It will double-check you are happy with the final name before renaming so there is no danger here.
I have it setup to automatically put the title at the front of every new filename. If you don't like this, you will have to edit the batch file. If it's a movie & you don't want it to be called "title - blah", just press enter when asked what you want it to be and it will just call the file "title".
Once you have confirmed the full filename displayed to you (either that you have written or automatically generated with a subtitle, the NextPVR database is updated to point your new filename and your file renamed.
I've put quite a lot of time into the error-checking and so it should be pretty easy to see what is wrong when running on different systems to mine and what it is that needs to be changed to get it to work for you.
Now that my PostProcessing.bat only renames files that have a title AND a subtitle. I wanted something to give me control over changing the names of the other recordings that don't have (or need) a subtitle. This can still be used to rename those files after processing as long as they are still referenced in the NextPVR database. It gives you total control to quickly give your recordings sensible names with easy access to the information NextPVR has stored about them. The ManualRenameRecording.bat is my solution to this.
The first job is to allow your video files to easily open in it:-
- Just right-click on a video file in Windows and choose "Open With"
- Then click on "Choose Program...".
- In the new window that loads, click the "Browse" button and go to the folder below (for Windows XP):-
- C:\
- Documents and Settings\
- All Users\
- Application Data\
- NPVR\
- Scripts\
- C:\
- Double-click on the ManualRenameRecordings batch file
- VERY IMPORTANT: make sure "Always use the selected program to open this kind of file" is NOT NOT NOT ticked. Otherwise it will try to rename a recording instead of playing it when you double-click on it.
- Then click "OK"
- Now you can right-click on your recordings, click on "Open With" choose "ManualRenameRecordings" and it will open in my batch flie.
Once the video has been opened by the batch, it will look-up the subtitle, title and description in the NextPVR database. If it finds a subtitle it will automatically suggest the name "title - subtitle". If you don't want this, just press n and then you can choose what the name will be. If you do want it like that, just press Y! If there is no subtitle found, it will automatically skip to the step below...
The batch will then display the title, subtitle (if there is one) and description and you can write or copy & paste the new filename in. It will double-check you are happy with the final name before renaming so there is no danger here.
I have it setup to automatically put the title at the front of every new filename. If you don't like this, you will have to edit the batch file. If it's a movie & you don't want it to be called "title - blah", just press enter when asked what you want it to be and it will just call the file "title".
Once you have confirmed the full filename displayed to you (either that you have written or automatically generated with a subtitle, the NextPVR database is updated to point your new filename and your file renamed.
I've put quite a lot of time into the error-checking and so it should be pretty easy to see what is wrong when running on different systems to mine and what it is that needs to be changed to get it to work for you.