Page 1 of 1

Error illegal usage

Posted: 30 Jan 2017, 02:56
by Amishman
I recently built a new computer. I switched this script over to it. I use it in uTorrent. It was working properly but now I receive an error.
Run script [fn:amc] at [Sat Jan 28 19:51:40 EST 2017]
Parameter: seriesFormat = {['D:', 'E:', 'F:', 'G:', 'H:', 'I:'].collect{ drive -> def a=n; return new File(drive+"/TV/", a)}.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode.special ? 'Specials' : 'Season '+s}/{s00e00} {t}
Parameter: movieFormat = {['D:', 'E:', 'F:', 'G:', 'H:', 'I:'].collect{ new File(it+'/Movies/'+any{collection+'/'}{''}) }.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} {fn.contains('3d') || fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'} ({y}) {"[$vf]"}/{n} {fn.contains('3d') || fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'} ({y})
Parameter: musicFormat = Music/{n}/{\$album/}{\${pi.pad(2)}. } {t}
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: plex = *****
Parameter: pushbullet = *****
Parameter: ut_label =
Parameter: ut_state = 5
Parameter: ut_title = Mighty.Magiswords.S01E19.720p.HDTV.x264-W4F[eztv].mkv
Parameter: ut_kind = single
Parameter: ut_file = Mighty.Magiswords.S01E19.720p.HDTV.x264-W4F[eztv].mkv
Parameter: ut_dir = C:\_Downloaded uTorrent Files
Illegal usage: output folder must exist and must be a directory: H:\
Failure (°_°)

This is my script.
filebot.launcher.exe -script fn:amc --output "H:/" --log-file amc.log --action move --conflict auto -non-strict --def "seriesFormat={['D:', 'E:', 'F:', 'G:', 'H:', 'I:'].collect{ drive -> def a=n; return new File(drive+\"/TV/\", a)}.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode.special ? 'Specials' : 'Season '+s}/{s00e00} {t}" "movieFormat={['D:', 'E:', 'F:', 'G:', 'H:', 'I:'].collect{ new File(it+'/Movies/'+any{collection+'/'}{''}) }.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} {fn.contains('3d') || fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':\"\"}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \") + ')'} ({y}) {\"[$vf]\"}/{n} {fn.contains('3d') || fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':\"\"}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \") + ')'} ({y})" "musicFormat=Music/{n}/{\$album/}{\${pi.pad(2)}. } {t}" --def deleteAfterExtract=y --def clean=y --def plex= --def pushbullet= "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
My guess is that Filebot is only looking at the H drive when it used to look at them all. I'm not sure what could have changed to get this error. Any help is greatly appreciated.

Re: Error illegal usage

Posted: 30 Jan 2017, 06:20
by rednoah
You can have your format redirect destination paths however you want, but you still need to pass in a valid output path.

Why would FileBot (and thus Windows) think that H: doesn't exist? Have you tried a different folder that you know for sure exists at all times?

Code: Select all

--output "C:\FileBot"

Re: Error illegal usage

Posted: 31 Jan 2017, 02:37
by Amishman
Thanks for the reply. I tried using H:\TV and it worked. Then i changed it back to the original H:\ and it worked. I'm not sure why it didnt work before but it is now. Thanks.