Extend tags of {tags}

Support for Windows 10 users and the Microsoft Store package
Post Reply
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Extend tags of {tags}

Post by in10se » 26 May 2019, 08:40

Hey guys,

I am using {tags} for my movies. It works perfectly with "Extended" or "Director's Cut". Some movies have special tags like "Rogue Cut", "Special Extend Edition" or "15th anniversary edition".

Is there a way that the {tags} recognizes them as tags too and adds them to the filename after renaming?

Thanks in advance!

User avatar
rednoah
The Source
Posts: 16605
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Extend tags of {tags}

Post by rednoah » 26 May 2019, 08:45

You can't modify how {tags} works, but you can just do your own matching:

Code: Select all

fn.matchAll(/Rogue.Cut|Special.Extend.Edition|15th.anniversary.edition/)

EDIT:

Note that {tags} already mostly does capture all the tags you've suggested out of the box:

Code: Select all

$ filebot -mediainfo . --format "{fn} => {tags}"
Avatar 2009 Rogue Cut Special Extended Edition 15th anniversary edition => [15th Anniversary Edition, Extended Edition, Rogue Cut]
:idea: Please read the FAQ and How to Request Help.

in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: Extend tags of {tags}

Post by in10se » 26 May 2019, 11:46

Thanks for your quick reply.

I am an absolute newbie in coding. What shall I do with those to codes, shall I implement them?

This is how my Code looks like (actually you did this one day :) ):

Code: Select all

//q:/FHD
/{n} ({y}) ({vf}) {tags}
/{n} ({y}) {tags} {imdbid}.{tmdbid}.{ac}.{vf}.{aco}.{af}.Bluray{'.'+lang}{'.'+fn.match(/forced/)}
where and how shall I implement that?

Post Reply