Keeping 3D in file name
Posted: 16 Feb 2014, 02:17
I found this script by Ithiel http://www.filebot.net/forums/viewtopic ... 1311#p7928 and I would like to incorporate it into my script but I'm having an issue.
This is what I am running from the CLI.
This is the results.
I think it needs quotes since it wants to end at the space. I tried putting quotes in different places but I did get it right.
This is what I am running from the CLI.
Code: Select all
filebot -script fn:amc --output "C:/test_output" --action test -non-strict "C:/test_input" --conflict override --def "seriesFormat=TV/{n}/{'Season '+s.pad (1)}/{s00e00} {t}" "movieFormat=New Movies/{n} ({y}) {\"[$vf]\"}/{n} ({y})" --def clean=y --def plex=localhost {fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}
Code: Select all
Parameter: seriesFormat = TV/{n}/{'Season '+s.pad (1)}/{s00e00} {t}/{n} {s00e00} {t}
Parameter: movieFormat = New Movies/{n} ({y}) {"[$vf]"}/{n} ({y})
Parameter: clean = y
Parameter: plex = localhost
Argument: C:\test_input
Argument: C:\Users\Amishman\{fn.contains('3D')
Exception: File not found: C:\Users\Amishman\{fn.contains('3D')
Failure (░_░)
Launch4j: Failed to run the given command.