send UFC events to own folder

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: send UFC events to own folder

Post by rednoah »

Does TheMovieDB / TheTVDB have entries for UFC Events? Are the recognized correctly? Logs?

If yes, then you just need to pass in your own custom formats.

If no, you can use --def ignore or --def ut_label=other and --def unsortedFormat to fully ignore, or ignore them from normal processing.

@see viewtopic.php?f=5&t=2
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: send UFC events to own folder

Post by rednoah »

Using something like this in your movie format should work well enough:

Code: Select all

{n =~ /UFC/ ? 'UFC Events' : 'Movies'}
:idea: Please read the FAQ and How to Request Help.
BillyTheKid
Posts: 30
Joined: 19 Dec 2019, 17:15

Re: send UFC events to own folder

Post by BillyTheKid »

Hi,

Are you able to show the full script call?

I am struggling to understand how the UFC move part of the script fits into the main script.

Thanks so much

i.e.

Code: Select all

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

Code: Select all

{n =~ /UFC/ ? 'UFC Events' : 'Movies'}
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: send UFC events to own folder

Post by rednoah »

You'd have to pass in your own custom format, so you'll need to familiarize yourself custom format expressions, and how to use them in combination with the amc script:
:arrow: https://www.filebot.net/naming.html
:arrow: https://www.filebot.net/amc.html



:idea: Probably something like this:

Code: Select all

--def movieFormat="{n =~ /UFC/ ? 'UFC Events' : 'Movies'}/{plex.tail}"
:idea: Please read the FAQ and How to Request Help.
Post Reply