Use Wall Street Journal App Instead of Trailers

Hello - Updated August 28th
 

I've decided to update this post as it's still possible to use the WSJ app. I've done some experimenting with orthogonal's code (big thanks) and his instructions for setting up a certificate. I was able to get the Wall Street Journal app to display PlexConnect like before!

 

Please note that after following orthogonal's tutorial, PlexConnect performs much slower (not sure if this is a coding issue, or related to the certificate). I find myself having to restart PlexConnect a lot to get menus to load. Anyway, here's how to configure PlexConnect to use the Wall Street Journal app (and restore Trailers app to it's original functionality)!

  1. If you have previously followed orthogonal's tutorial in step 2 (and want access to Apple's Trailers app), then on your Apple TV, navigate to Settings > General > Profiles (very bottom). Remove ALL profiles listed (select and remove). Then, proceed to step 2 (next step).
  2. Open his tutorial here: http://langui.sh/2013/08/27/appletv-ssl-plexconnect/.
  3. In the first Terminal step he lists, change "trailers.apple.com" to "secure.marketwatch.com" (no quotes).
  4. Continue with the rest of his tutorial following the steps exactly.
  5. Only AFTER following his tutorial COMPLETELY, then follow the old steps 1-3 in the bottom of this post (below)   :)
  6. After the below steps, you should now be able to access PlexConnect using the WSJ app! If you followed step 1, you also have access to the Trailers app again!

Old instructions:

  • Open ALL files under the PlexConnect folder (I use Sublime Text for OS X and just open the PlexConnect folder and this will open all files underneath that folder, but there are many ways to accomplish this via software or terminal - check the old forum post for more ways to do this: http://forums.plexapp.com/index.php/topic/72790-using-another-app-other-than-trailers).
     
  • Search for "trailers.apple.com" in ALL files under the PlexConnect folder and replace all instances in ALL files with "secure.marketwatch.com" (don't enter any quotes when finding/replacing). After making that change, save and close all files.
    Commands to do this in Sublime Text editor are:
    File>Open PlexConnect folder. Find>Find in Files. Make the above URL replacement. File>Save All. File>Close All Files.

     
  • Next, we have to change one line of code from application.js to main.js. Open WebServer.py under PlexConnect folder and change the below line
    if self.path.endswith("application.js"):
    to the following line:
    if self.path.endswith("main.js"):
  • Save and then you are all set! Run PlexConnect and open WSJ Live (Wall Street Journal app) on your Apple TV - it will now show PlexConnect!

This is great. How did you find the info that needed to be changed. Like main.js. Or marketwatch.

now using the WSJ app. trailers back again. :)

Just wanted to say how amazing this idea is.  I'd much rather the WSJ app be used than trailers.  Working like a charm here, thank you very much!

Thanks, helped me a lot. Still I would really like to know what happened to crunchyroll to be honest :) 

Using the trailers app is good as it passes no account information so Apple really have no reason to block it.

On the other hand Crunchyroll does I believe, although I do not know if it was intentionally blocked.

Essentially we believe that, when you connect your ATV to the internet, Apple tells your ATV what to show on its home screen e.g. This is how the WWDC app suddenly appears and disappears.

The app is already present in the firmware and Apple just sends a signal to turn it off or on.

Hence you should always save your firmware blobs for every firmware to give you the widest options available e.g. Apple may have added the ability for Crunchyroll to connect either via http or https in firmware 5.3 and they can switch between them at will.

It may be they do the same for trailers in ios7 (shame in them if they do as there is nothing being passed that is personal info and the user has to have physical access to the ATV and deliberately set the DNS server manually) so save your blobs (even on the atv3 in case of an incoming jailbreak) just in case.


They would of course break trailers for older firmware users if it e.g. encrypted comms was a new feature so they hopefully will not do it but they may set up any new applications to have a bit more options open to them.


Btw this is semi informed speculation so do take it as well intended advice and not gospel :wink:


Btw this is semi informed speculation so do take it as well intended advice and not gospel ;)

Uh oh :(  

I never want the party to end!  Does WSJ send user data?

this looks awesome but-is there a way to keep it ? i visit plexconnect project in github daily and downloading updates. will i need to change the files every time ?

 

Using the trailers app is good as it passes no account information so Apple really have no reason to block it.
On the other hand Crunchyroll does I believe, although I do not know if it was intentionally blocked.
Essentially we believe that, when you connect your ATV to the internet, Apple tells your ATV what to show on its home screen e.g. This is how the WWDC app suddenly appears and disappears.
The app is already present in the firmware and Apple just sends a signal to turn it off or on.
Hence you should always save your firmware blobs for every firmware to give you the widest options available e.g. Apple may have added the ability for Crunchyroll to connect either via http or https in firmware 5.3 and they can switch between them at will.
It may be they do the same for trailers in ios7 (shame in them if they do as there is nothing being passed that is personal info and the user has to have physical access to the ATV and deliberately set the DNS server manually) so save your blobs (even on the atv3 in case of an incoming jailbreak) just in case.

They would of course break trailers for older firmware users if it e.g. encrypted comms was a new feature so they hopefully will not do it but they may set up any new applications to have a bit more options open to them.

Btw this is semi informed speculation so do take it as well intended advice and not gospel ;)

i don't understand what can apple block in the trailers app that can kill plexconnect ?

Turn on https, like your bank and shopping sites do to stop info being intercepted.
However the trailers application does not provide any personal info so if it did not originally have this functionality then it would cause it to break for users of older firmwares, these two factors alone might stop Apple from being killjoys :wink:

I am not sure about all the other applications and what is passed etc.

Turn on https, like your bank and shopping sites do to stop info being intercepted.
However the trailers application does not provide any personal info so if it did not originally have this functionality then it would cause it to break for users of older firmwares, these two factors alone might stop Apple from being killjoys ;)

I am not sure about all the other applications and what is passed etc.

i understood. thanks

i only know that kello does uses id (and i need this app, too :) )

anyway, how there are guides (not official ones, of course) that explains how to use plexconnect on this cruchyroll ? i understood it stopped work, but how did it work from the beginning ?

Turn on https, like your bank and shopping sites do to stop info being intercepted.
However the trailers application does not provide any personal info so if it did not originally have this functionality then it would cause it to break for users of older firmwares, these two factors alone might stop Apple from being killjoys ;)

I am not sure about all the other applications and what is passed etc.

Would there be any possibility of making instances of "trailers.apple.com" and "application.js" variables, and passing them through to settings.cfg, that way advanced users could change the PlexConnect app if so desired (understanding that it would be completely unsupported of course).  That would be seriously helpful as I think a lot of users would rather use the WSJ app than the Apple Trailers app.

It isnt working anymore for me, can any1 copy ?

This method no longer works because they parameterized the URL.  Someone else will have to describe the new method.

Huh? Now you only have to edit only one file (instead of 27 or so...). But the result should be the same, no?

It seems the WSJ app no longer asks for www.marketwatch.com, instead it asks for secure.marketwatch.com . Could they have encrypted it? If they have it may not bode well for the trailer app :(

Huh? Now you only have to edit only one file (instead of 27 or so...). But the result should be the same, no?




What file do we edit now?

PlexConnect.py - change line 69

From:

param['HostToIntercept'] = 'trailers.apple.com'
 

To:

param['HostToIntercept'] = 'www.marketwatch.com'
 

WebServer.py - change line 90

From:

if self.path.endswith("application.js"):
 

To:

if self.path.endswith("main.js"):
 

But as I said it seems WSJ or apple has changed the entry point for the app from www.marketwatch.com to secure.marketwatch.com and it no longer seems to work, just like they blocked crunchyroll :(

They can do that without an actual iOS update? This gets creepy...

In that case, the "prevent aTV update" wouldn't help at all. :-(

Is it just me, or is trailers not even working anymore??

I had PlexConnect set up to use marketwatch, and when that stopped working I went back and reset everything to trailer.apple.com (and application.js)... and now it looks like clicking on the Trailers icon now requests "a772.w11.akamai.net". Or "trailers.apple.akamai.net". And all I can get is the real trailers app and not Plex.

EDIT: NEVERMIND... I must've copied over an old Settings.py that didn't have the ip_dnsmaster set correctly.

Trailers still works.

...

But as I said it seems WSJ or apple has changed the entry point for the app from www.marketwatch.com to secure.marketwatch.com and it no longer seems to work, just like they blocked crunchyroll :(

Does anybody know it the AppleTV checks for trusted certificates? Maybe you could sign a certificate yourself and still make it work.