Video format from file name?

Any questions? Need some help?
Post Reply
Chas3down
Posts: 11
Joined: 20 Oct 2016, 04:39

Video format from file name?

Post by Chas3down » 27 May 2019, 19:47

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.
Last edited by Chas3down on 27 May 2019, 19:53, edited 1 time in total.

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

Re: Video format from file name?

Post by rednoah » 27 May 2019, 19:53

Yes, but you'll have to match it yourself.

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

Code: Select all

{fn.match(/\[.+?\]/)}
:idea: Please read the FAQ and How to Request Help.

Chas3down
Posts: 11
Joined: 20 Oct 2016, 04:39

Re: Video format from file name?

Post by Chas3down » 27 May 2019, 19:54

Okay, wans't sure if I had any options besides regex match.. thanks

Post Reply