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
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