Page 1 of 1

Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 28 May 2018, 06:29
by mterrill
Hi,

Is there anyway for Filebot to keep a part of the file name if a particular word is in it?

i.e. In a previous tool I used, if it saw "Dolby Atmos" in the file name it kept it in there...

Or if the name Uncut or Directors Cut, extended editon etc... was in it it would keep these

i.e. Kong- Skull Island - Dolby Atmos (2017) would be the file name....
or
Walk the line Extended Edition

or is there a way for FileBot to determine the audio codec and then Add the label "Dolby Atmos"....?

Thanks,

​​​​​​​Matt

Re: Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 28 May 2018, 07:54
by rednoah
1.
Known tags such as "Extended Edition" can be added via the {tags} binding in your custom format.

You can do it yourself as well though, and then you can match / keep anything:

Code: Select all

fn.match(/Dolby.Atmos/)

2.
If you want to tag all Dolby Atmos files with Dolby Atmos, then I'd recommend looking into the MediaInfo bindings, which can probably be used to determine if a file is Dolby Atmos or not, so you don't have to rely on the filename:
viewtopic.php?f=5&t=4285

You'd have to check yourself which MediaInfo properties might allow you to tell if it's a Dolby Atmos file or not, as I don't have any Dolby Atmos content for testing myself.

Re: Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 28 May 2018, 08:23
by mterrill
Thanks, how do I get {tags} to work? and can you add to the specific tags?

This is my renaming scheme for now...

Code: Select all

D:/Movies to Move/{ny.colon(' - ').replace('?', '!')}/{n.colon(' - ').replace('?', '!')}

Re: Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 28 May 2018, 08:48
by rednoah
You can use {tags} in your format. Note that the {tags} only works if the original filename contains certain text patterns such as "Directors Cut" in the filename, but these patterns cannot be modified by end users. You can suggest new patterns for inclusion in the next release though.


Original Name:

Code: Select all

Avatar.2009.Extended.Edition.mp4
Format:

Code: Select all

{ny} {tags}
New Name:

Code: Select all

Avatar (2009) [Extended Edition]

Re: Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 28 May 2018, 13:20
by devster
This is what tags identifies

Code: Select all

pattern.video.tags: (Extended.|Ultimate.)?(Director.?s|Collector.?s|Theatrical|Ultimate|Final|Extended|Rogue|Special|Despecialized|R.Rated).(Cut|Edition|Version)|Extended|Remastered|Recut|Uncut|Uncensored|Unrated|IMAX
to add to them you need to manually match them as in rednoah's post.

Re: Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 28 May 2018, 23:42
by mterrill
When trying to add {tags} I get this error

Binding "tags": undefined

This is just what I was testing

Code: Select all

D:/Movies to Move/{ny.colon(' - ').replace('?', '!')}/{n.colon(' - ').replace('?', '!')}{tags}

Re: Add words to movie name and keep Extended Edition,Directors Cut, Uncut etc?

Posted: 29 May 2018, 03:01
by kim
Test with a file that has the "tags"... e.g. "Extended"