INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: tij on October 07, 2019, 12:20:49 am

Title: help with expression for auto-importing trailers [solved]
Post by: tij on October 07, 2019, 12:20:49 am
I start to put trailers i rip from BD into NAS

It is in the same location as main title of the movie ... with "-trailer" appended to it.

So if main title is [White Vengeance (2011).mkv] ... then trailer is [White Vengeance (2011)-trailer.mkv]

Reason for this is backward compatibility with Kodi ... which atm i dont use but who knows the future

So I set up a tag rule in Auto-Import to tag trailers (basically see if filename contains "trailer")

Media Sub Type value

ifelse(regex([Filename],/#trailer#/,0,0),Trailer,Movie)

Above doesnt work ... and trailers Media Sub Type are still Movie … must be something wrong with my expression … help
Title: Re: help with expression
Post by: tij on October 07, 2019, 01:07:36 am
got it should have used [if] instead of [ifelse]

Media Sub Type value

if(regex([Filename],/#trailer#/,0,0),Trailer,Movie)