2005-12-11, 01:24 PM
This is an example of how to get the new name of a recording after renamerecordings did run in postprocessing.bat
It shows how you can run comskip and comclean after renamerecordings using the new name.
This is specially usefull when you use comclean2 because the input file used for cuttermaran includes the name of the mpeg file.
Warning: This has not been tested extensively!!!!!
It shows how you can run comskip and comclean after renamerecordings using the new name.
This is specially usefull when you use comclean2 because the input file used for cuttermaran includes the name of the mpeg file.
Warning: This has not been tested extensively!!!!!
Code:
Renamerecordings %1 >renamerecording.log
rem Process all the lines from the Renamerecording log file
set newname=%1
for /F "usebackq delims=: tokens=1,2" %%i in ("renamerecording.log") do call :processline "%%i" "%%j"
goto :afternewname
:processline
rem Remove
set arg=%~1
rem Skip useless lines
if NOT "%arg:~0,3%"=="New" goto :eof
set newname=%~2
Rem Skip the space at the start
set newname=%newname:~1,100%
goto :eof
:afternewname
echo New name = "%newname%"
Comskip "%newname%"
Call Comclean2 "%newname%"
:eof
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
Support Comskip, visit the forum and donate at http://www.comskip.org/