Multiple drive script issue

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
jeffddntdt
Posts: 4
Joined: 24 Feb 2015, 16:02

Multiple drive script issue

Post by jeffddntdt »

I tried to follow the information in the guide but haven't written a script before.

groovy pad info

FileBot 4.5.6 (r2818)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.9
JRE: Java(TM) SE Runtime Environment 1.8.0_31
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 6 Core / 2 GB Max Memory / 40 MB Used Memory
OS: Windows 7 (amd64)


So I started with this line in the utorrent auto run, with the different drive destinations

filebot -script fn:amc --output --def "seriesFormat=D:/TV_Shows/{n}/{'S'+s}/{fn}" "movieFormat=F:/Movies/{n} {y}/{fn}" "musicFormat=F:/Music/{n}/{fn}" --log-file amc.log --action symlink --conflict auto --def unsorted=y -non-strict --def subtitles=en "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"

Since nothing happened I looked at the Log

Feb 23, 2015 9:08:47 AM net.filebot.cli.ArgumentBean getFiles
WARNING: Illegal Argument: java.io.IOException: The filename, directory name, or volume label syntax is incorrect (seriesFormat=D:/TV_Shows/{n}/{'S'+s}/{fn})
Feb 23, 2015 9:08:47 AM net.filebot.cli.ArgumentBean getFiles
WARNING: Illegal Argument: java.io.IOException: The filename, directory name, or volume label syntax is incorrect (movieFormat=F:/Movies/{n} {y}/{fn})
Feb 23, 2015 9:08:47 AM net.filebot.cli.ArgumentBean getFiles
WARNING: Illegal Argument: java.io.IOException: The filename, directory name, or volume label syntax is incorrect (musicFormat=F:/Music/{n}/{fn})
Parameter: music = y
Parameter: unsorted = y
Parameter: subtitles = en
Parameter: ut_label =
Parameter: ut_state = 5
Parameter: ut_title = Top.Gear.UK.S22E04.1080p.HDTV.x264-C4TV
Parameter: ut_kind = multi
Parameter: ut_file = Sample\top.gear.uk.s22e04.1080p.hdtv.x264-c4tv-sample.mkv
Parameter: ut_dir = D:\downloads\Top.Gear.UK.S22E04.1080p.HDTV.x264-C4TV
Argument: C:\Windows\system32\seriesFormat=D:\TV_Shows\{n}\{'S'+s}\{fn}
Argument: C:\Windows\system32\movieFormat=F:\Movies\{n} {y}\{fn}
Argument: C:\Windows\system32\musicFormat=F:\Music\{n}\{fn}
File not found: C:\Windows\system32\seriesFormat=D:\TV_Shows\{n}\{'S'+s}\{fn}
Failure (°_°)
Feb 23, 2015 10:55:07 PM net.filebot.cli.ArgumentBean getFiles
WARNING: Illegal Argument: java.io.IOException: The filename, directory name, or volume label syntax is incorrect (seriesFormat=D:/TV_Shows/{n}/{'S'+s}/{fn})
Feb 23, 2015 10:55:07 PM net.filebot.cli.ArgumentBean getFiles
WARNING: Illegal Argument: java.io.IOException: The filename, directory name, or volume label syntax is incorrect (movieFormat=F:/Movies/{n} {y}/{fn})
Feb 23, 2015 10:55:07 PM net.filebot.cli.ArgumentBean getFiles
WARNING: Illegal Argument: java.io.IOException: The filename, directory name, or volume label syntax is incorrect (musicFormat=F:/Music/{n}/{fn})
Parameter: music = y
Parameter: unsorted = y
Parameter: subtitles = en
Parameter: ut_label = itp tv
Parameter: ut_state = 5
Parameter: ut_title = The.Night.Shift.S02E01.720p.HDTV.X264-DIMENSION
Parameter: ut_kind = multi
Parameter: ut_file = Sample\the.night.shift.201.720p-dimension.sample.mkv
Parameter: ut_dir = G:\Downloads\Torrents\The.Night.Shift.S02E01.720p.HDTV.X264-DIMENSION
Argument: C:\Windows\system32\seriesFormat=D:\TV_Shows\{n}\{'S'+s}\{fn}
Argument: C:\Windows\system32\movieFormat=F:\Movies\{n} {y}\{fn}
Argument: C:\Windows\system32\musicFormat=F:\Music\{n}\{fn}
File not found: C:\Windows\system32\seriesFormat=D:\TV_Shows\{n}\{'S'+s}\{fn}
Failure (°_°)

Then tried to run Filebot.exe and got this in the CMD

java.util.prefs.WindowsPreferences (int)
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5

I figured it had to do with the fact it's trying to put it in the System32 folder, So i figured I better stop before I really mess things up.

WHERE DID I GO WRONG????
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple drive script issue

Post by rednoah »

What's the command that's actually executed? Something is clearly not escaped/quoted correctly.

@see viewtopic.php?f=4&t=1899

EDIT:

You didn't specify --output VALUE.

PS: Technically you specified --def as --output value.
:idea: Please read the FAQ and How to Request Help.
jeffddntdt
Posts: 4
Joined: 24 Feb 2015, 16:02

Re: Multiple drive script issue

Post by jeffddntdt »

Obviously I have little if no experience with cmdline, so I tried to follow the thread

viewtopic.php?f=4&t=215

within that it mentioned

--def "seriesFormat=X:/TV/{n}/{'S'+s}/{fn}" "animeFormat=X:/Anime/{n}/{fn}" "movieFormat=Z:/Movies/{n} {y}/{fn}" "musicFormat=Z:/Music/{n}/{fn}"

for separating destinations, which didn't work. Would be good idea to show thread with it properly installed. So I cut it down to see a destination for tv shows and ended up with

X:/TV/{n}/{'S'+s}/{fn}/TV Shows/Name/season/episode

So now I just have

filebot -script fn:amc --output "D:/" --log-file amc.log --action copy --conflict override --def "movieformat=F:/" "musicFormat=F:/" -non-strict --def clean=y --def subtitles=en "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"

of course everything is put on D:, and I'm getting tired of messing with my ratios to try the string. So if swap --conflict override --def to --conflict override=def

would that solve the issue?
Post Reply