Adding tags to filename

All about user-defined episode / movie / file name format expressions
Post Reply
bigbag
Posts: 2
Joined: 25 Sep 2016, 11:09

Adding tags to filename

Post by bigbag »

Hi,

i'm new to filebot, and allready am a huge fan of it.

I looked up some stuff, and i editted the format to this:

Code: Select all

{n} ({y}) {tags.join(', ')} [{imdbid}]

tags.binding:

Code: Select all

Extended|Uncensored|Remastered|Unrated|Uncut|IMAX|(Director.?s|Theatrical|Ultimate|Final|Rogue|Collectors|Special).(Cut|Edition|Version)
is there a way to add more versions to this tag?

Some movies have D.C. or Ultimate Director's Cut in their filename, and then it doesn't show thatinfo, or cuts it to eg. Extended.

Also, if there is web-dl in the filename, how can i keep it in the new filename?


eg.

The Movie (1989) Ultimate Directors Cut - Web-DL.mkv
becomes
The Movie (1989) Directors Cut [tt0011223].mkv

but i want it to show:

The Movie (1989) Ultimate Directors Cut WEB-DL [tt0011223].mkv

Is that possible?
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding tags to filename

Post by rednoah »

{tags} is predefined but more tags can be added for future versions. You can use String.matchAll(/regex/) to match anything else from the filename.

{source} will catch patterns like WEB-DL from the filename.
:idea: Please read the FAQ and How to Request Help.
jantjo
Posts: 6
Joined: 11 Nov 2016, 03:04

Re: Adding tags to filename

Post by jantjo »

how can I get the second portion to show? I can get the extended or unrated, but cant seem to get the cut, edition, version to.
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding tags to filename

Post by rednoah »

Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include basic information (i.e. sysinfo output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding tags to filename

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Post Reply