Page 1 of 1

Video format from file name?

Posted: 27 May 2019, 19:47
by Chas3down
I have a video file that includes

Code: Select all

Bluray-1080p
Is it possible for filebot to pull the video format from the filename? Because I get this error -

Code: Select all

Binding "vf": Invalid media file:The Shawshank Redemption (1994)\The.Shawshank.Redemption (1994) [Bluray-1080p].mkv

I purposely have a bad media file as I do not want media files read during my rename. The resolution can not be extracted always after the source or anything like that, it can come anywhere in the file name.

Re: Video format from file name?

Posted: 27 May 2019, 19:53
by rednoah
Yes, but you'll have to match it yourself.

e.g. match the [...] part from the file name:

Code: Select all

{fn.match(/\[.+?\]/)}

Re: Video format from file name?

Posted: 27 May 2019, 19:54
by Chas3down
Okay, wans't sure if I had any options besides regex match.. thanks