Help with complex renaming format command line
Posted: 23 Apr 2020, 05:23
Hi guys,
I have been renaming through filebot GUI but now i want to move on to command line.
Everything is working great but i got a preset that i cant use in command line.
This is my renaming format:
I have read that you can put it in a txt and call it from the command line with --def @/path/to/args.txt , but it is not working for me.
It gives a lot of error like this:
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <>> at index
Any help is appreciated. Thanks!
I have been renaming through filebot GUI but now i want to move on to command line.
Everything is working great but i got a preset that i cant use in command line.
This is my renaming format:
Code: Select all
{ny.replace(':', ' -')}
{
(hd == 'SD') ? {any{text.size()}{0} > 0 ? '[SD][Dual]':'[SD][ES]'} :
(hd == 'UHD') ? ( ((bytes/1073741824).round(1) > 30 && bitrate >= 26000000 ? '[4K UHDremux]' : {any{text.size()}{0} > 0 ? '[4K MicroUHD][Dual]':'[4K MicroUHD][ES]'})) :
(hd == 'HD' && vf == '720p') ? {any{text.size()}{0} > 0 ? '[720p][Dual]':'[720p][ES]'} :
(hd == 'HD' && vf == '1080p' ?
((bytes/1073741824).round(1) > 15 && bitrate >= 18000000) ? '[BD-Remux]' :
(bitrate > 8000000) ? {any{text.size()}{0} > 0 ? '[BD-Rip][Dual]':'[BD-Rip][ES]'} : {any{text.size()}{0} > 0 ? '[Micro-HD][Dual]':'[Micro-HD][ES]'} :
{any{text.size()}{0} > 0 ? '[Micro-HD][Dual]':'[Micro-HD][ES]'}
)
}{(genres.contains('Animación')) ? '[Animación]' : '' }
It gives a lot of error like this:
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <>> at index
Any help is appreciated. Thanks!