Page 1 of 1

Extend tags of {tags}

Posted: 26 May 2019, 08:40
by in10se
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!

Re: Extend tags of {tags}

Posted: 26 May 2019, 08:45
by rednoah
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]

Re: Extend tags of {tags}

Posted: 26 May 2019, 11:46
by in10se
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?