How to use iMovie Theater instead of the Trailers app

I just set this up for kicks and I have decided it is the best app to reuse. Frees up trailers which I might use occasionally, and uses an app I will probably never use. Further, the iMovie Theatre app has an equally appropriate icon and an even more appropriate name.

You right, I hope one day, plexconnect will support this option (use another app than traiter, with lit the need to modify the py code).

:slight_smile:

It would be nice to have the choice to switch between apps. The developers could put the “HostToIntercept” line to the config file and apply the same modifications as here to WebServer.py.


Then your config would look like this:

HostToIntercept=www.icloud.com // for iMovie

HostToIntercept=secure.marketwatch.com // for WSJ

HostToIntercept=trailers.apple.com // for Trailers


The original Trailers App is definetly more intresting than WSJ or iMovie Theater. And iMovie feels like it was made for plex … :-))

Hey Lucian, why not submit a pull request with those modifications?

good idea .. done
https://github.com/iBaa/PlexConnect/pull/186

You would need multiple webserver.py files?





Sent from my iPhone using Tapatalk

No. Lucian just added a line of code that allows the one Webserver.py to deal with whatever option is chosen. Baa has already set it up so it can use either Trailers or WSJ; Lucian has added iMovie Theatre capabilities.

No. the idea is that you can switch which app PlexConnect hijacks by changing the "HostToIntercept" line in the config.

So you have one WebServer.py and in the config it's either: 
HostToIntercept=www.icloud.com // for iMovie
OR

HostToIntercept=secure.marketwatch.com // for WSJ
OR

HostToIntercept=trailers.apple.com // for Trailers
:-)

If I want to use iMovie I have to alter the lines of code in webserver as said in the instructions correct?



So let’s say I wanted to switch back to trailers, I have to revert back to an original copy of webserver?



My other question is, when we install the profile for iMovie in the atv, do we end up with a iMovie.pem that we stick u to certificates folder?



Thanks guys. Sorry I’m not home to try this out. Just want to make sure I have a good understanding before I try it out.





Sent from my iPhone using Tapatalk

@jdillinger:
1. yes, the instructions in the original post are correct (we are talking about a more general approach right now)

2. yes, to go back to trailers you would have to undo the instructions (keep a copy of the original file)

3. you can have both certificate installed (on the apple tv and in the certificates folder)

:-)

If you follow the current certificate creation instructions and just replace “trailers.apple.com” with “www.icloud.com” you will still end up with a pem file named trailers.pem.

If this is the case, you can then just call the first file, trailers.pem.old, and then re-edit if you want to switch back.

You will have to further edit the terminal script used to create the cert files if you want to give it a name other than trailers.pem (iMovie.pem, for example) and avoid the need to rename the first file.

How extensive would it be if I wanted to name it iMovie.pem lol?





Sent from my iPhone using Tapatalk

Not hard, just look at the certificate creation scripts and the changes should be self evident. Edit: You would also have to change the the name of the .pem file location in settings.cfg.

Far better option IMO to use this than the trailers app. Thank you for sharing this.

Would you have to do this every time you update plexconnect? I.e. re-edit the two files in plexconnect folder?


And would this break Plexify App?

Yes and yes. 1. Unless Lucian’s pull request is accepted you will have to edit the two files each time you update. 2. At least Plexify’s generated certs will not work and you will have to edit the Plexconnect files it downloads.

Yes and yes. 1. Unless Lucian's pull request is accepted you will have to edit the two files each time you update. 2. At least Plexify's generated certs will not work and you will have to edit the Plexconnect files it downloads.


Thank you for this.

Question: Can you add the two certificate files to a single configuration profile, and if so, will it work, or do you need two separate configuration profiles?

https://github.com/iBaa/PlexConnect/commit/28daa9738ccec9071d0cc445f658a74901cf8956

Baa has integrated Lucian's pull request into the Plexconnect-master. Once you update, you will just have to edit the setting.cfg file with the appropriate URL (replace "trailers.apple.com" with "www.icloud.com" for iMovie Theater app and "secure.marketwatch.com" for WSJ app) and, of course, make sure you have the correct certificate installed. I am sure Lucian will update the first post soon.

I would like to thank Lucian and Baa for moving this along so quickly.

yes.. thanks wiry much guys :) as always awesome work