Installing a new app on AppleTV -- without hijacking Trailers

I dont know im using an atv2 5.2 untethered that now has it :slight_smile: so now I have vevo on an untethered ios and if I get more bag.plists I should be able to add any app while remaning untethered.


Lets get these bag.plist files for some of these apps:


http://support.apple.com/kb/HT4799

Yeah, Vevo is part of the ATV3 for US and Canadian users.

Hi,

I've followed the guide and got it working on 5.3 without many problems. I've turned off the DNS hack and changed all the atv.plexconnect occurrences in PlexConnect to the IP address and it's working which is awesome!

@wahiman.j, you can take a sample bag.plist file from the github project in the guide: https://github.com/intrepidusgroup/rpi-atv/tree/master/Quickstart.

Something I've noticed is that the library is takes A LOT more time to load (over 400 movies in the list view takes almost 30 seconds while it took 5 or so before the change) I wonder what the reason could be...any ideas?

Great work!!

Update

had to add http:// prior to my ip now i see a change new (in theaters) app. When I goto it it seems to be a clone of the trailers app. I can see plexconnect is now working on both apps. In theaters app is working exactly like trailers. No issues at all.

Care to share with the community how y'all did it?  :D

*Patiently waits for someone to figure out how to enable this on 6.0.

*Patiently waits for someone to figure out how to enable this on 6.0.

And after that, PlexConnect should be integrated to this perfect method.

I have how I did it in my previous post. Its easily done follow the video. I used my webserver to add the profile to get the add site button.

i have an atv that i hardly use and would love to get this working, if someone can post some simple steps on how to get this setup, it would be much appreciated

You must be running ios 5.3 or lower at this time to do this!


Step 1 using your atv remote add this profile from the first post within his links given: addsite.mc (I have a websever so point to 192.168.1.101:0000/myfolder/addsite.mc)<-----follow my 3rd link in my signature if you dont understand this!

Step 2 restart apple tv from settings

Step 3 using your atv remote open new add site app then type in this for an example: http://appletv.vevo.com/bag.plist


Done (This is extremely easy took me maybe 5min since my webserver was already setup)

Ah so thats where the apps/settings are:


/users/library/application support/front row/merchants

wahlman.j, will you be trying to implement plexconnect? If you happened to get it done, show a video for us to salivate on…

This is very new at least for me. Im trying to look into his files to get an idea how he set up his r-pi stuff. Looks like he still points it to his r-pi to get plexconnect to work. Even if it was possible to get it running I dont know if it would be easy to start it up on the atv. If its as simple as just adding it to a /library/launchdaemons folder in the atv it should be simple but nothing is usally that easy. You would think there is a way since the atv can use homesharing at boot to see your files on you mac on the top shelf but thats something else in itself.

I have read in his pdf that you can type in the root url of a site to enable it.

Can anyone test by typing in http://hbogo.com in the add site. Or http://catalog.lv3.hbogo.com

Im not sure if this is the root url or not. Im guessing this need to be where the xml and js files are located but im not sure.

I really want to get hbogo working on my ios 5.2 atv2. Im using this example from the plexchannel hbogo.bundle: https://github.com/brandonm/HBO.bundle/blob/master/Contents/Code/__init__.py

I would just use the hbogo.bundle but it doesnt work on my atv. I dont think anyone has maintained this plugin in awhile or hbogo changed things up, would be great to have hbogo & maxgo working in pms channels.

You must be running ios 5.3 or lower at this time to do this!

Step 1 using your atv remote add this profile from the first post within his links given: addsite.mc (I have a websever so point to 192.168.1.101:0000/myfolder/addsite.mc)<-----follow my 3rd link in my signature if you dont understand this!
Step 2 restart apple tv from settings
Step 3 using your atv remote open new add site app then type in this for an example: http://appletv.vevo.com/bag.plist

Done (This is extremely easy took me maybe 5min since my webserver was already setup)

Ok i have done all your steps successfully and added Vevo. I now want to hook up PlexConnect. Care to share your bag.plist config?

There is no plexconnect bag.plist…yet, can you try the http://hbogo.com using your new add site app?

As for getting this to work with PlexConnect, I would *think* it would be as simple as this:

1. Look at the stuff in the rpi-atv github site under QuickstartĀ 

2. Install the addsite.mc profile to add the Add Site button (follow directions under quickstart, or I would expect there'd be a way to put it in the PlexConnect server itself)

You need to get this installed only once, but if it's "built in" to PlexConnect (such that you can to http:///atv/addsite.mc) then it might be easier in the long run.

3. Figure out how to get the bag.plist into the plexconnect server (once you've done this, you can do the same thing to add addsite.mc to the server).

The bag.plist needs to be available all the time -- so making it part of the plexconnect server itself makes the most sense, so that you won't need a separate process to serve it up. Ā I'm sure there must be a way to put "static files" in the plexconnect server, just put it somewhere that you'll have an easy url like "http:///atv/bag.plist"

4. There should be a single top-level URL for the plexconnect server, right? Analogous to the "main.xml" (or whatever it's called) in Trailers, right? Ā That URL is what you put as the root-url in bag.plist.

5. Put a nice AppleTV-friendly icon somewhere on the plexconnect server as well, and the URL for that goes under menu-icon-url (they support 720 and 1080 versions).

6. Install addsite.mc, restart, go to add site, enter the url for the bag.plist, and you should be good to go.

(I haven't installed plexconnect, so I'm sure I'm missing a lot here, but this should be the basic approach....)

david.

How do we get hbogo working?


Or any of these other apps http://support.apple.com/kb/HT4799


How did you add that url in your pdf (Hello khan fu/infosec cons)?

As for getting this to work with PlexConnect, I would *think* it would be as simple as this:

1. Look at the stuff in the rpi-atv github site under Quickstart 

2. Install the addsite.mc profile to add the Add Site button (follow directions under quickstart, or I would expect there'd be a way to put it in the PlexConnect server itself)

You need to get this installed only once, but if it's "built in" to PlexConnect (such that you can to http:///atv/addsite.mc) then it might be easier in the long run.

3. Figure out how to get the bag.plist into the plexconnect server (once you've done this, you can do the same thing to add addsite.mc to the server).

The bag.plist needs to be available all the time -- so making it part of the plexconnect server itself makes the most sense, so that you won't need a separate process to serve it up.  I'm sure there must be a way to put "static files" in the plexconnect server, just put it somewhere that you'll have an easy url like "http:///atv/bag.plist"

4. There should be a single top-level URL for the plexconnect server, right? Analogous to the "main.xml" (or whatever it's called) in Trailers, right?  That URL is what you put as the root-url in bag.plist.

5. Put a nice AppleTV-friendly icon somewhere on the plexconnect server as well, and the URL for that goes under menu-icon-url (they support 720 and 1080 versions).

6. Install addsite.mc, restart, go to add site, enter the url for the bag.plist, and you should be good to go.

(I haven't installed plexconnect, so I'm sure I'm missing a lot here, but this should be the basic approach....)

david.

Thanks David. I get the logic now. Will give it a go and report back!

Heh. Sorry for the quick reply. I dug a little, and apparently I did play with this a while back... This may be an old version of the code, but...:

In WebServer.py, the MyHandler class, do_GET function, I basically duplicated the "self.path.endswith(".png")" block to handle the path "bag.plist" and "addsite.mc". Changing the file read to a hardcoded path for the two files:

                # testing stuff -- DJS
                if self.path.endswith("bag.plist"):
                    dprint(__name__, 1, "Serving bag.plist")
                    self.send_response(200)
                    self.send_header('Content-type', 'application/xml')
                    self.end_headers()
                    f = open(sys.path[0]Ā + sep + "assets/bag.plist", "r")
                    self.wfile.write(f.read())
                    f.close()
                    return

                if self.path.endswith("addsite.mc"):
                    dprint(__name__, 1, "Serving config profile")
                    self.send_response(200)
                    self.send_header('Content-type', 'application/xml')
                    self.end_headers()
                    f = open(sys.path[0]Ā + sep + "assets/addsite.mc", "r")
                    self.wfile.write(f.read())
                    f.close()
                    return

and this is the bag.plist I used:

<?xml version="1.0" encoding="UTF-8"?>


  
    javascript-url
    http://192.168.37.53/application.js
    auth-type
    js
    enabled
    YES
    menu-title
    Plex Connect
    merchant
    Plex Connect
    menu-icon-url
    
      720
      http://192.168.37.53/plex.png
      1080
      http://192.168.37.53/plex.png
    
  

I don't seem to have saved any screenshots showing it working, but I'm pretty sure it did work at the time. Maybe. This was sometime in June, so I'm not positive...

In your bag.plist for plexconnect I noticed there is a application.js, where do we get/generate that? Also could you answer my prev post when you get a chance? Will this free up our trailers app then as in your first post without hijacking trailers?

Isn’t that in assets/js in the Plexconnect folder?

In your bag.plist for plexconnect I noticed there is a application.js, where do we get/generate that? Also could you answer my prev post when you get a chance?

wahlman that file already exists under the assets/js folder

edit: institute already beat me to it