INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: jsmith967 on April 06, 2020, 05:56:26 pm

Title: Need help with expression for trailer files
Post by: jsmith967 on April 06, 2020, 05:56:26 pm
So, I think the trailer function in Theater View is awesome, but it looks to be unreliable. If I were to somehow download trailer files for the movies in my library and named them like "The Dark Knight Rises (2012)-trailer.mov" wherein the file name matched the movie filename (without the trailer addition), how would I tell Theater View to show this file under the same coverart as the movie file? For example, I'd want to be able to see the file "The Dark Knight Rises (2012).mkv" and "The Dark Knight Rises (2012)-trailer.mov" under the same coverart in Theater View. That way, I could select the trailer file before I select the movie file.

How would I write the category expression so that Theater View would display the trailer as described above?

Thanks for the help!
Title: Re: Need help with expression for trailer files
Post by: jsmith967 on April 07, 2020, 03:02:07 pm
OK, now I've figured out how to import trailers and tag them in the Media Sub Category as Trailer. As long as the file has "trailer" in it, it is marked as a Trailer in media sub cat. with the following expression:
if(regex([Filename],/#trailer#/,0,0),Trailer,Movie)

Now I need a way to display it in Theater View. It's going to have to do something with the "if()" and "Media Sub Category". I want the trailers to appear with the movies, as in a series and still be able to tell the difference between the actual movie file and the trailer.

Thanks in advance for the help!

Title: Re: Need help with expression for trailer files
Post by: tij on April 11, 2020, 06:38:47 am
When MC get information for your movie it also get trailer information

Look at your movie tags … there should be Trailer tag … its usually something like "webmedia://YouTube/-44_igsZtgU"

If this tag is present … the Theatre View there will be option Trailer that plays that

You can replace that tag with path to your local file … its a manual job … and I am not sure what to do if you have multiple trailers for one movie

Its a bit strange that MC allows Trailers to be Sub Media Category. But then does not check if you have that trailer or not.

Hmmm … I might request this from developers.
Title: Re: Need help with expression for trailer files
Post by: RoderickGI on April 11, 2020, 08:58:54 pm
The OP's real issue was fixed over here tij: https://yabb.jriver.com/interact/index.php/topic,124807.msg864437.html#msg864437

He was running an old version of MC, so the trailer functionality didn't work.

But your idea of supporting local, and multiple, trailers is interesting.