NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 3 4 5 6 7 … 56 Next »
Yet Another RenameRecordings Batch files

 
  • 0 Vote(s) - 0 Average
Yet Another RenameRecordings Batch files
vgossain
Offline

Junior Member

Posts: 16
Threads: 3
Joined: Jan 2012
#51
2012-01-13, 07:26 AM
So I adjusted my setup to have "new" episodes of a series be appended with a "*" through mc2xml (For people interested in this functionality, you can find it here: http://forums.nextpvr.com/showthread.php...t-episodes)

However, this appending of "*" caused the renaming batch script to fail. In fact, it ended up removing the recording entries from the db completely. I think it is likely something to do with the "*" being a special character. I ended up modifying the batch files to remove the "*" if it exists to prevent this issue from happening. It may be good to add this (or perhaps a cleaner way of doing it) to the batch file in case others run into this.

This is the line I added in the "Clear the rubbish out of the title" section:

REM Remove trailing * for new episodes
if "%title:~-1%"=="*" set title=%title:~0,-2%

If it ends with a "*", remove the last two characters
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#52
2012-01-16, 09:14 AM
vgossain Wrote:So I adjusted my setup to have "new" episodes of a series be appended with a "*" through mc2xml (For people interested in this functionality, you can find it here: http://forums.nextpvr.com/showthread.php...t-episodes)

However, this appending of "*" caused the renaming batch script to fail. In fact, it ended up removing the recording entries from the db completely. I think it is likely something to do with the "*" being a special character. I ended up modifying the batch files to remove the "*" if it exists to prevent this issue from happening. It may be good to add this (or perhaps a cleaner way of doing it) to the batch file in case others run into this.

This is the line I added in the "Clear the rubbish out of the title" section:

REM Remove trailing * for new episodes
if "%title:~-1%"=="*" set title=%title:~0,-2%

If it ends with a "*", remove the last two characters
Or you could try using "set subtitle=%subtitle:*=-%" and it SHOULD remove the asterisks from the titles.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#53
2012-06-16, 12:09 AM (This post was last modified: 2012-06-16, 07:09 AM by pBS.)
use "set subtitle=%subtitle: *=%" to Remove it instead of replacing it with a dash...
[notice i included the space before * so it replaces as a group, don't worry it won't replace single spaces elsewhere]

that process should be used on all title names as many have the */new mod..
there are also more bad char substitutions that are needed as well,i'll try to find my list..

and use this to detect running processes without any external programs...[tasklist available by default in xp thru win7]
Code:
set image=ffmpeg.exe
rem checks if %image% running and sets %errorlevel% 1 if it isn't...
@TASKLIST|findstr /I /B /c:"%image% ">NUL
@if %errorlevel% equ 0 @echo %image% is Running!!
from my batch tips page...
http://forums.nextpvr.com/showthread.php...s-path-too!
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#54
2012-06-16, 06:45 AM
vgossain Wrote:So I adjusted my setup to have "new" episodes of a series be appended with a "*" through mc2xml (For people interested in this functionality, you can find it here: http://forums.nextpvr.com/showthread.php...t-episodes)

However, this appending of "*" caused the renaming batch script to fail. In fact, it ended up removing the recording entries from the db completely. I think it is likely something to do with the "*" being a special character. I ended up modifying the batch files to remove the "*" if it exists to prevent this issue from happening. It may be good to add this (or perhaps a cleaner way of doing it) to the batch file in case others run into this.

This is the line I added in the "Clear the rubbish out of the title" section:

REM Remove trailing * for new episodes
if "%title:~-1%"=="*" set title=%title:~0,-2%

If it ends with a "*", remove the last two characters

Good idea.

TBH I've moved on to MediaPortal instead of NextPVR now. I got fed up with all the reliability issues etc.
« Next Oldest | Next Newest »

Users browsing this thread: 5 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6


Possibly Related Threads…
Thread Author Replies Views Last Post
  Generate NextPVR import XML from recorded TV .wtv files from WMC Jimixter 5 5,265 2021-05-06, 03:34 PM
Last Post: a1blues
  Generate missing thumbnails for video files imported into NextPVR Jimixter 0 2,574 2019-12-16, 07:28 PM
Last Post: Jimixter
  Files plugin tmrt 13 7,299 2014-01-09, 11:16 PM
Last Post: mvallevand
  Manual RenameRecording Batch File SANGER_A2 0 2,175 2011-10-08, 11:11 AM
Last Post: SANGER_A2
  NPVR Rename Recordings Batch File raceviper13 8 7,959 2011-04-23, 11:52 PM
Last Post: raceviper13
  Search DB batch util pBS 4 2,480 2009-09-03, 10:01 AM
Last Post: pBS
  Updated BDA scan files MixMan 1 2,180 2009-08-12, 08:19 PM
Last Post: martint123
  PostProcessing Dvr-MS files to remove comercial breaks crlorentzen 0 1,546 2008-09-13, 08:38 PM
Last Post: crlorentzen
  Batch to surely Hibernate & Update EPG dfdario 1 1,731 2008-03-09, 02:32 PM
Last Post: cakes
  NEW PLUG-IN: Files McBainUK 13 4,034 2007-06-05, 06:47 PM
Last Post: cybershaman

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

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

Linear Mode
Threaded Mode