I'm using a preset (based on a tip u gave me a few years ago) :
Code: Select all
{hd.replaceAll("UHD", replacement = "B:/2160P").replaceAll("SD", replacement = "H:/DVDRIPS").replaceAll("HD", replacement = vf.replaceAll("720p", replacement = "B:/720P").replaceAll("1080p", replacement = "S:/1080P"))}/{collection.ascii()}/{ny.ascii().upperInitial()} [{imdbid}]/{ny.ascii().upperInitial()} [{imdbid}] {if (hd =~ /HD/) vf}
Code: Select all
filebot -script fn:amc --mode=Movies --action move --lang fr --db TheMovieDB --conflict skip -non-strict "E:/DDL/" --log-file "E:/Automatisation/amc.log" --def excludeList="E:/Automatisation/amc.txt" --def movieFormat="({hd.replaceAll("UHD", replacement = "B:/2160P").replaceAll("SD", replacement = "H:/DVDRIPS").replaceAll("HD", replacement = vf.replaceAll("720p", replacement = "B:/720P").replaceAll("1080p", replacement = "S:/1080P"))}/{collection.ascii()}/{ny.ascii().upperInitial()} [{imdbid}]/{ny.ascii().upperInitial()} [{imdbid}] {if (hd =~ /HD/) vf})" --def seriesFormat="E:/TV Shows/{n}/{n}.{s00e00}.{t}" --def emby=127.0.01:86f83fd076e44609bf2bf8e96846c1d
Code: Select all
Run script [fn:amc] at [Fri Aug 09 12:01:11 CEST 2019]
Parameter: excludeList = E:/Automatisation/amc.txt
Parameter: movieFormat = ({hd.replaceAll(UHD, replacement = B:/2160P).replaceAll(SD, replacement = H:/DVDRIPS).replaceAll(HD, replacement = vf.replaceAll(720p, replacement = B:/720P).replaceAll(1080p, replacement = S:/1080P))}/{collection.ascii()}/{ny.ascii().upperInitial()} [{imdbid}]/{ny.ascii().upperInitial()} [{imdbid}] {if (hd =~ /HD/) vf})
Argument[0]: E:\DDL
Use excludes: E:\Automatisation\amc.txt (11319)
Input: E:\DDL\Fichiers divers\The.Sun.Is.Also.a.Star.2019.mkv
Group: [Movie:The Sun Is Also a Star (2019)] => [The.Sun.Is.Also.a.Star.2019.mkv]
ScriptException: SyntaxError: illegal colon after argument expression;
solution: a complex label expression before a colon must be parenthesized
Finished without processing any files
Abort (×_×)
1- Would you please help me to correct this error ?
2- This cmdline will only proceed movies, no TV shows.
I know i dont need the --def seriesFormat="E:/TV Shows/{n}/{n}.{s00e00}.{t}" part, but I can't manage to make filebot not rename movies it doesn't recognize into tv shows.
Is there please a simple trick ?
Many Thanks