unsortedFormat help

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
mudsloth
Posts: 5
Joined: 02 Dec 2015, 06:05

unsortedFormat help

Post by mudsloth »

I'm having an issue with defining the unsortedFormat successfully. I'm sure I'm missing something obvious, so hopefully there's an easy answer. Here's what I have in uTorrent:

Code: Select all

filebot -script fn:amc --output "E:" --log-file amc.log --action copy --conflict override -non-strict --def music=n artwork=n clean=y unsorted=y --def "unsortedFormat=D:/soccer/{fn}" "movieFormat=E:/movies/{n} ({y})" "seriesFormat=D:/TV/{n}/{n}.{s00e00}.{t}" "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
And here's the log for a recently downloaded file that was unsorted:

Code: Select all

Parameter: music = n
Parameter: artwork = n
Parameter: clean = y
Parameter: unsorted = y
Parameter: unsortedFormat = D:/soccer/{fn}
Parameter: movieFormat = E:/movies/{n} ({y})
Parameter: seriesFormat = D:/TV/{n}/{n}.{s00e00}.{t}
Parameter: ut_dir = D:\utorrent
Parameter: ut_file = Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
Parameter: ut_kind = single
Parameter: ut_title = Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
Parameter: ut_label = soccer
Parameter: ut_state = 20
Input: D:\utorrent\Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
Group: [tvs:capital one cup highlights] => [Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Capital One Cup Highlights]
Failed to fetch episode data: [Capital One Cup Highlights]
CmdlineException: Unable to match files to episode data
Processing 1 unsorted files
[COPY] Rename [D:\utorrent\Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv] to [E:\Unsorted\Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv]
It looks like it recognized the formatting change correctly, so why was the file copied to E:\Unsorted instead of D:\soccer?
User avatar
rednoah
The Source
Posts: 23449
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unsortedFormat help

Post by rednoah »

Are you using the latest version of FileBot?
:idea: Please read the FAQ and How to Request Help.
mudsloth
Posts: 5
Joined: 02 Dec 2015, 06:05

Re: unsortedFormat help

Post by mudsloth »

Good call, I wasn't. But, I updated, and it's not working for a different reason. Here's the log:

Code: Select all

Run script [fn:amc] at [Wed Dec 02 15:32:39 PST 2015]
Parameter: music = n
Parameter: artwork = n
Parameter: clean = y
Parameter: unsorted = y
Parameter: unsortedFormat = D:/soccer/{fn}
Parameter: movieFormat = E:/movies/{n} ({y})
Parameter: seriesFormat = D:/TV/{n}/{n}.{s00e00}.{t}
Parameter: ut_dir = D:\utorrent
Parameter: ut_file = Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
Parameter: ut_kind = single
Parameter: ut_title = Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
Parameter: ut_label = soccer
Parameter: ut_state = 20
Input: D:\utorrent\Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
Group: [tvs:capital one cup highlights] => [Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Capital One Cup Highlights]
Failed to fetch episode data: [Capital One Cup Highlights]
CmdlineException: Unable to match files to episode data
Processing 1 unsorted files
[COPY] Rename [D:\utorrent\Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv] to [E:\D:\soccer\Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm]
InvalidPathException: Illegal char <:> at index 4: E:\D:\soccer
Finished without processing any files
Failure (°_°)
Adding on E:\, even though I did a full path.
User avatar
rednoah
The Source
Posts: 23449
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unsortedFormat help

Post by rednoah »

Fixed. Please try again with dev:amc and confirm that it's fixed.
:idea: Please read the FAQ and How to Request Help.
mudsloth
Posts: 5
Joined: 02 Dec 2015, 06:05

Re: unsortedFormat help

Post by mudsloth »

Mostly success! It did move the file to the right place, but it didn't keep the extension. So,
- Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm.mkv
became
- Capital One Cup Highlights 2015-12-01 720p HDTV 50fps x264-wAm
User avatar
rednoah
The Source
Posts: 23449
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unsortedFormat help

Post by rednoah »

Just use {fn}.{ext} or {file.name} then.
:idea: Please read the FAQ and How to Request Help.
mudsloth
Posts: 5
Joined: 02 Dec 2015, 06:05

Re: unsortedFormat help

Post by mudsloth »

Awesome, thank you!
Post Reply