Automated Media Center sans subtitles and sorting.

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
user938
Posts: 3
Joined: 19 May 2013, 18:56

Automated Media Center sans subtitles and sorting.

Post by user938 »

I'd like to make two changes to the AMC script.
-Stop subtitles from downloading.
-Change the default movieFormat so movies are not sorted into {output}/Movies/Name (Year)/Name (Year) [CD123].ext
I just want them dumped into my --output folder.

Here is the AMC script with just a few minor changes:

Code: Select all

filebot -script fn:amc --output "F:\Processed" --log-file amc.log --action copy --conflict override -non-strict --def music=n subtitles=n artwork=n   "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
I don't know what value to change "en" to so I can stop subtitles from downloading. I tried just "n" with no result.

Code: Select all

subtitles=en
As for changing the sorting, the following would move the file into my root "processed" folder:

Code: Select all

movieFormat={fn}
However when I add that to the end of the AMC script it won't rename the file. So I need to know where to add that to the AMC without braking the renaming function.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center sans subtitles and sorting.

Post by rednoah »

1. Don't add the subtitles option if you don't want subtitles.

2. Don't use filebot if you just wanna move files. You're wasting resources of free services like thetvdb and themoviedb having it figure out what episode/movie the file is, just to completely throw away that information again.

Format is valid, just doesn't make sense. Probably messed up passing arguments but you didn't add a log so I can't know.
:idea: Please read the FAQ and How to Request Help.
user938
Posts: 3
Joined: 19 May 2013, 18:56

Re: Automated Media Center sans subtitles and sorting.

Post by user938 »

Thanks for the info regarding subtitles!
Don't use filebot if you just wanna move files
Sorry if I wasn't clear, I`m not just trying to just move files. I`m using the AMC script with utorrent but after you change --output the script will automatically sort movies into {output}/Movies/Name (Year)/Name (Year) [CD123].ext.

I wanted to change that to just {output}Name (Year) [CD123].ext

However whenever I add the parameter movieFormat={fn} to override the defaults I seem to be messing up the renaming function so I`m sure your right about the passing arguments - I don`t understand how cmdline argument work so this is all new to me.

Here was my last log file:

Code: Select all

Parameter: movieFormat = {fn}
Parameter: music = n
Parameter: artwork = n
Parameter: ut_dir = F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous
Parameter: ut_file = A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4
Parameter: ut_kind = multi
Parameter: ut_title = A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous
Parameter: ut_label = 
Parameter: ut_state = 5
Input: F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4
Input: F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_eng.srt
Input: F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_swe.srt
A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4 [series: null, movie: A Clockwork Orange (1971)]
A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_eng.srt [series: null, movie: A Clockwork Orange (1971)]
A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_swe.srt [series: null, movie: A Clockwork Orange (1971)]
Group: [tvs:null, mov:A Clockwork Orange (1971), anime:null] => [A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4, A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_eng.srt, A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_swe.srt]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4]
May 19, 2013 10:35:19 PM net.sourceforge.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.nio.file.AccessDeniedException: F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4:filename
May 19, 2013 10:35:19 PM net.sourceforge.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.nio.file.AccessDeniedException: F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_eng.srt:filename
May 19, 2013 10:35:19 PM net.sourceforge.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.nio.file.AccessDeniedException: F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_swe.srt:filename
[COPY] Rename [F:\New Files\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4] to [F:\Processed\A.Clockwork.Orange.1971.1080p.BluRay.x264.anoXmous_.mp4]
Thanks for your time!
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center sans subtitles and sorting.

Post by rednoah »

Works perfectly, things get copied to $output/{fn} as specified. Check the docs on naming again. {fn} => filename!

@see
http://www.filebot.net/naming.html

I guess you mean to do something like

Code: Select all

--def "movieFormat={n} {y}"
:idea: Please read the FAQ and How to Request Help.
user938
Posts: 3
Joined: 19 May 2013, 18:56

Re: Automated Media Center sans subtitles and sorting.

Post by user938 »

That was what I needed, thanks a lot for your help!

Here is what I'm using in case anyone else stumbles onto this thread looking to do the same:

Code: Select all

filebot -script fn:amc --output "F:\Processed" --log-file amc.log --action copy --conflict override -non-strict --def music=n artwork=n   "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" --def "movieFormat={n} ({y})"
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center sans subtitles and sorting.

Post by rednoah »

You're probably gonna want to add a {pi} somehow unless you don't have multi-file movies.
:idea: Please read the FAQ and How to Request Help.
Post Reply