2024-05-25, 06:29 AM
I encountered a problem the other day when I recorded a program that had an exclamation mark in its title.
The recording was fine, but my postprocess.bat didn't like it.
The folder and filenames looked like:
D:\NextPVR_recordings\Bushwacked!\Bushwacked!.S03E03.ext
but the batch file was reading the path as
D:\NextPVR_recordings\Bushwacked.S03E03.ext and thought that !\Bushwacked! was a variable. Clearly it fell over from that point on.
I guess the fix is to copy %1 into a variable and go from there, but my code uses various forms of extended parameters %~dpnx throughout so I'd have to create multiple variables for each form used.
Just wondering if there is a setting somewhere that will force NextPVR to use "Windows_Friendly" characters in folder and filenames like the yt-dlp option :
The other option is to not use Bushwacked! for test recordings in the first place, and to rename the folder and files if it happens again, then run PostProcess manually.
I thought I'd report this as an observation - it's not a serious issue.
Thanks for all the great work.
The recording was fine, but my postprocess.bat didn't like it.
The folder and filenames looked like:
D:\NextPVR_recordings\Bushwacked!\Bushwacked!.S03E03.ext
but the batch file was reading the path as
D:\NextPVR_recordings\Bushwacked.S03E03.ext and thought that !\Bushwacked! was a variable. Clearly it fell over from that point on.
I guess the fix is to copy %1 into a variable and go from there, but my code uses various forms of extended parameters %~dpnx throughout so I'd have to create multiple variables for each form used.
Just wondering if there is a setting somewhere that will force NextPVR to use "Windows_Friendly" characters in folder and filenames like the yt-dlp option :
Code:
--windows-filenames Force filenames to be Windows-compatibleThe other option is to not use Bushwacked! for test recordings in the first place, and to rename the folder and files if it happens again, then run PostProcess manually.
I thought I'd report this as an observation - it's not a serious issue.
Thanks for all the great work.