Trailer for each Movie

Spun out, what a great feature - works well.

Crazy PHT doesn’t have this?

I actually don’t know why the trailer link isn’t working on MyPlex. It sometimes works which makes it very weird! For example, go into a movie from a MyPlex server and push trailer. If it fails, try over and over and eventually it will work. Still looking into it!

I actually don't know why the trailer link isn't working on MyPlex. It sometimes works which makes it very weird! For example, go into a movie from a MyPlex server and push trailer. If it fails, try over and over and eventually it will work. Still looking into it!


Regardless of how many times I press the trailer button on a shared server it doesn't work :( I think the problem is you can't do a url lookup on a remote/shared server:-

var url = "http://atv.plexconnect/PMS(" + addrPMS + ")/system/services/url/lookup?url=http%3A//www.youtube.com/watch%3Fv%3D"+ encodeURIComponent(video) + "&PlexConnect=Play";

 If you change addrPMS to the address of a local server it works fine, which I guess makes sense, you don't want people accessing youtube through a shared server and thus someone else's internet connection.

What if no local server is available? Plus, if you look at the media URL generated, the content is played off Google not transcoded by the PMS, I think.

Thanks!

I don't fully understand how the transcoder/myPlex works but from my testing you can't seem to do /system/services/url/lookup on a remote/shared server, only a local one. Give it a try, replace addrPMS with your hardcoded local PMS address and it works fine.

>>Plus, if you look at the media URL generated, the content is played off Google not transcoded by the PMS, I think.

This really depends on the file itself. aTV compatible media will be direct-played, other might get transcoded.

You can also set "transcoder action" to "transcode" and should see a different URL - ie hitting the transcoder no matter what.

Well, I pushed a fix which brings support for MyPlex. I basically did what @roidy suggested, using the local PMS. This means if you are using PlexConnect solely with remote servers, trailers button won't work. I am hoping to fix this but if I don't I will add some logic to hide the trailer button if unavailable.

By the way, the commit got clumped in with my other pull request. Thanks!

That will do for now. thanks for the fix.

What about searching the local movie folder for the trailer first?

Pretty sure there is a small group of us pack rats with everything, including a file:

Super Mario Bros. (1993)\

\fanart.jpg

\folder.jpg

\poster.jpg

\Super Mario Bros. (1993).avi

\Super Mario Bros. (1993).nfo

\Super Mario Bros. (1993).tbn

\Super Mario Bros. (1993)-fanart.jpg

\Super Mario Bros. (1993)-trailer.mp4

I am pretty sure that is the standard trailer naming convention. That would mean no need to look at Youtube if you don't have too.

That’s something Plex server would have to do, which it doesn’t yet. I believe that is scheduled to be added at some point in the future though.

Just wanted to bump this back up, looking for some feed back on this if anyone has a idea on if this is a option we can get?


A liitle off subject and already asked prior but this gives me hope, but since you were able to implement this, is it also possible to get a similar audio intro theme music option in tv shows as well when you are selecting a tv show? If not something like the intro to the season, as in the theme video prior to each family guy episode or something of that nature? Tell me yes, crosses fingers. :slight_smile:


I would love to see a intro like this per season as an option(american horror story asylum season 2):

https://www.google.com/url?sa=t&rct=j&q=american+horror+story+intro+season+2&source=web&cd=1&ved=0CDEQtwIwAA&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DE00BPNKubKs&ei=sJF0Us-TNZXKsQSvmYHwAw&usg=AFQjCNEOr8Cn8cHw_u248ZpvjncfYyimDQ&sig2=ojVekIlb6xrv_bwBH_SCgw

Baa or roidy would be the best people to ask however my guess is no. I don’t think the Apple TV allows background music while navigating menus. At least I have no clue how.

It doesnt need to be background music, season trailer would work out as well just as the trailer per movie was integrated.

Oh, you mean a button just play the season trailer on the episode select list? Not sure where the button would go in the current scheme. What’s the purpose of that though?

Just miss the audio intro with plex client on the atv, i just wish there was a way to embed this into pms somehow, but I will take what I can get. Just really for people that come over and are like what is that show, could show them a quick intro without leaving plexconnect.

Ah okay I gotcha, never even viewed the season trailer but seems reasonable. I’ll see what I can do, assuming it’s something they want but right now still fixing woes with trailers and myPlex.

No worries, the trailers option is working 100% for me, thanks for the hard work! Looking forward to this if its feasible.

That's something Plex server would have to do, which it doesn't yet. I believe that is scheduled to be added at some point in the future though.

Just out of curiosity, and I completely agree that PMS should be doing this (despite the fact that they haven't yet but wouldn't this be possible, like the youtube link is possible?

I mean they already have the movie file location, so something like:

plain english code something like:

if moviename found then

     does moviename-trailer.* = true

     if moviename-trailer.* = true then

          play local file

     else

          do youtube code

     endif

endif

Pardon my ignorance if PlexConnect could do such a thing, however, if you could add youtube code to locate a trailer I assume you could do the other stuff...

The interface between PlexConnect and Plex Media Server (PMS) is the documented API. I don’t see any way to gain filesystem access through this API.

The reason youtube works is because Plex supports URL lookup which converts any media URL to an entity with full metadata.

Can we please not make Plexconnect too bloated in order to make it do superfluous things. It's once attractive minimalist interface is already being stretched out of shape to add MyPlex. Further, adding awkward hacks just to mimic decorative functionality from other clients just seems inelegant to me.

Regards, (The design police strikes again)