if {vc} in [HEVC h265 H265 x265 X265] then ... else ...

All about user-defined episode / movie / file name format expressions
Post Reply
Tbright
Posts: 10
Joined: 27 Mar 2016, 14:01

if {vc} in [HEVC h265 H265 x265 X265] then ... else ...

Post by Tbright »

Hi,

I know this has to be easy, but I have not been able to find the right way, sorry about that

I want to save my movies in a special folder (Movies (HEVC)) if they have the new video codecs (vc returns HEVC, h265, x265....). What I did is

{vc=='HEVC' ? 'Movies (HEVC)' : 'Movies'} and it works when vc is HEVC

How should I change that to make it work if vc is any of the aforementioned codecs?

Thanks

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

Re: HEVC h265 H265 x265 X265

Post by rednoah »

Regex:

Code: Select all

{vc =~ /HEVC|265/ ? 'Movies (HEVC)' : 'Movies'}
:idea: Please read the FAQ and How to Request Help.
Tbright
Posts: 10
Joined: 27 Mar 2016, 14:01

Re: HEVC h265 H265 x265 X265

Post by Tbright »

Thanks, I would never have guessed that
TB
Post Reply