Match only part of filename

Any questions? Need some help?
Post Reply
mangojuus
Posts: 1
Joined: 27 Apr 2020, 09:13

Match only part of filename

Post by mangojuus »

I have movies that are named like this: Director - (year) Movie Title (Michael Haneke - (2000) Code Unknown)
When i try to match these movies Filebot thinks director is the movietitle obviously, and ill have to manually match the movie which is tedious as i have 4-500 files named this way. What im wondering is, is there a way to make a preset which tells filebot to match only the info after the hyphon so that it scrapes (year) Movie Title or some?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match only part of filename

Post by rednoah »

1.
Have you tried the ImageImage Repeat toggle to enable auto-selection for all subsequent choices reduce user-interaction?



2.
Have you tried Image Strict Mode to reduce user-interaction?
viewtopic.php?t=4695



EDIT: 1. and 2. turn out to be not helpful for Michael Haneke - (2000) Code Unknown because the year part makes FileBot ignore the name part due to the assumption that name must precede year. Michael Haneke - Code Unknown 2000 works though.



3.
As a last resort, can pre-process files in Plain File Mode and strip the "Director - " part before processing files for real:
viewtopic.php?t=2072

A plain file format like this will do the trick:

Code: Select all

fn.after(/-/)
You'll also want to move the year pattern behind the movie name pattern while you're at it:

Code: Select all

{fn.after(/\)/)} ({fn.match(/\d{4}/)})
:idea: Please read the FAQ and How to Request Help.
Post Reply