AMC - Change Format Based on Label

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Westane
Posts: 4
Joined: 31 May 2017, 18:22

AMC - Change Format Based on Label

Post by Westane »

Hey, sorry for the noob question but I'm having a hard time finding the syntax for this.

After years of using (and fixing...) EventGhost I finally made the jump to just using the AMC script in tandem with uTorrent and it works great! What I'm looking to do is this: My media library is sorted in multiple folders for TV and Movies, ie, TV Shows, Kids TV Shows, Reality TV Shows, Movies, Kids Movies, Anime Movies, etc.

I was hoping there was a way using the AMC script to either change the renaming format (so as to change the output directory) based on the torrent label OR to integrate the label into the output format directly, as in, "X:/%L/{n}/Season {s}/{sxe - t}" or something.

Thanks for the help!
User avatar
rednoah
The Source
Posts: 22997
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC - Change Format Based on Label

Post by rednoah »

Both approaches will work. You can use the {label} binding in your format if you want to do more complex checks.
:idea: Please read the FAQ and How to Request Help.
Westane
Posts: 4
Joined: 31 May 2017, 18:22

Re: AMC - Change Format Based on Label

Post by Westane »

rednoah wrote:Both approaches will work. You can use the {label} binding in your format if you want to do more complex checks.
How exactly would I write that out in the script? I'm at work otherwise I'd try it, but my best guess is:

Code: Select all

--filter "ut_label='Kids Movie'" --def movieFormat="M:/Kids Movies/{ny}/{fn}"
or...

Code: Select all

--output "M:/%L"
Is that correct?
User avatar
rednoah
The Source
Posts: 22997
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC - Change Format Based on Label

Post by rednoah »

1.
--output "M:/%L" is probably less good of an idea, because --output must be a valid existing folder, which may not be the case depending on the value of %L.


2.
--filter doesn't do what you think it does: viewtopic.php?t=2127


3.
Here's what I'd do:

Code: Select all

--output "M:" --def movieFormat="{label}/{plex.tail}"
:idea: Please read the FAQ and How to Request Help.
Post Reply