send UFC events to own folder

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
DementedJohn
Posts: 2
Joined: 22 Nov 2015, 12:59

send UFC events to own folder

Post by DementedJohn »

I have a generic script i use in FileBot that just puts my movies and Tv shows into their respective folders.

I also have UFC events, but they always get put into my movies or tv folders. I would like filebot to identify a UFC even and put it into my UFC folder. My plex is configured to scan this folder and organize it properly.

Any help is appreciated.

Here is my script:

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"
User avatar
rednoah
The Source
Posts: 19159
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.
DementedJohn
Posts: 2
Joined: 22 Nov 2015, 12:59

Re: send UFC events to own folder

Post by DementedJohn »

Themoviedb does an ok job most of the time.
User avatar
rednoah
The Source
Posts: 19159
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: 17
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: 19159
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