Thanks rednoah,
Not sure what happened with the first problem you listed. I cleaned this up and it still works.
The %* isn't passing UNC paths correctly and I cannot figure out why.
Can you tell me how to pass in a path to an opened cmd window? I changed the double quotes to single.
Here is the code I am working with
Code: Select all
filebot -script fn:amc '%*' --def "movieFormat={[\"\\\\TITANSERVER/5media.3tb/Movie 2\",\"\\\\TITANSERVER/2media.2tb/Movies 1\"].collect{\"$it\" as File}.sort{ a,b -> a.exists() <=> b.exists() ?: a.listPath().reverse().findResult{ it.freeSpace ?: null } <=> b.listPath().reverse().findResult{ it.freeSpace ?: null } }.last()}/{n} ({y}) [{imdbid}]/{n} ({y}) [{imdbid}]{'.'+[vf]}{'.'+[resolution]}{'.'+[vc]}{'.'+[ac]}{'.'+[af]}{'.'+[source]}" --def "seriesFormat={[\"\\\\TITANSERVER/4media.2tb/TV Shows 2\",\"\\\\TITANSERVER/3media.2tb/TV Shows 1\",\"\\\\TITANSERVER/1media.3tb/TV Shows 3\"].collect{\"$it/$n\" as File}.sort{ a,b -> a.exists() <=> b.exists() ?: a.listPath().reverse().findResult{ it.freeSpace ?: null } <=> b.listPath().reverse().findResult{ it.freeSpace ?: null } }.last()}\{n} {episode.special ? 'Special' : 'Season '+s.pad(2)}\{n}.{s00e00}{'.'+[vf]}{'.'+[resolution]}{'.'+[vc]}{'.'+[ac]}{'.'+[af]}{'.'+[source]}.{t}" -r --action copy --conflict override -non-strict --def subtitles=en --def myepisodes=nzdreamer55:XXXXX--def clean=y >> "G:\Public.Commons\Filebotoutput\filebot.log" 2>&1
Here is the output showing that the unc path does not get passed correctly.
Parameter: movieFormat = {["\\\\TITANSERVER/5media.3tb/Movie 2","\\\\TITANSERVER/2media.2tb/Movies 1"].collect{"$it" as File}.sort{ a,b -> a.exists() <=> b.exists() ?: a.listPath().reverse().findResult{ it.freeSpace ?: null } <=> b.listPath().reverse().findResult{ it.freeSpace ?: null } }.last()}/{n} ({y}) [{imdbid}]/{n} ({y}) [{imdbid}]{'.'+[vf]}{'.'+[resolution]}{'.'+[vc]}{'.'+[ac]}{'.'+[af]}{'.'+[source]}
Parameter: seriesFormat = {["\\\\TITANSERVER/4media.2tb/TV Shows 2","\\\\TITANSERVER/3media.2tb/TV Shows 1","\\\\TITANSERVER/1media.3tb/TV Shows 3"].collect{"$it/$n" as File}.sort{ a,b -> a.exists() <=> b.exists() ?: a.listPath().reverse().findResult{ it.freeSpace ?: null } <=> b.listPath().reverse().findResult{ it.freeSpace ?: null } }.last()}\{n} {episode.special ? 'Special' : 'Season '+s.pad(2)}\{n}.{s00e00}{'.'+[vf]}{'.'+[resolution]}{'.'+[vc]}{'.'+[ac]}{'.'+[af]}{'.'+[source]}.{t}
Parameter: subtitles = en
Parameter: myepisodes = nzdreamer55:XXXX
Parameter: clean = y
Argument: C:\Windows\'\TITANSERVER\5media.3tb\Movie 2\Ride with the Devil (1999)'
Exception: File not found: C:\Windows\'\TITANSERVER\5media.3tb\Movie 2\Ride with the Devil (1999)'
java.lang.Exception: File not found: C:\Windows\'\TITANSERVER\5media.3tb\Movie 2\Ride with the Devil (1999)'
at Script3$_run_closure4.doCall(Script3.groovy:8)
at Script3.run(Script3.groovy:8)
at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
As always thank you for your help and time.
-S