PlexConnect on aTV2/jailbroken -> launchctl

Right... there was an option like that. Good catch!

Figuring out how is not the problem (XBMC's source code is freely available and if is possible to see the native Plex client source code as well). The issue is:

-

who has the source code for plex client? i think i am on to something here to add it topside

I have seen a couple of github sites with HelloWorld and stuff. The native Plex client was - as far as I remember - somewhat under lock. Apparently it contained some code snippets not in the public domain.

I had asked a similar question... get the native client (or XMBC or whatever...), remove the guts to only leave the shell. And use the result "just" as a link to the main AppleTV app, with added XML conversion. I just didn't find one, willing to work on this. :-D

Yeah the XBMC code is probably easier to look at and read from what I understand.

After some looking around I belive I figured out the proper way the extrainternetcatagories and the bag.plist needs to be setup for everything to work including the icon. If similar files were made and put into the ios appletv jailbreak everything should work fine. I think the issue is once you delete the cache file for the icon it removes the icon unless you put it back in since that is where it is stored after adding it via addsite. I have tested this and it works fine assuming you haven’t installed and removed the icons from the cache prior. You can test it by renaming the menu title and merchant to something else then adding a addtional dict block to the extrainternet catagories file for a new app. After copying the extrainternetcatagories file over and restarting the appletv it generates a new working app and icon without adding a site via the addsite button. I think this is a limitation to addsite and you are not supposed to delete the image cache file, it generates one on adding the site then it stays in the cache, so really it only uses the plexconnect.png once to generate plexconnect@720.png and plexconnect@1080.png then it uses the cache from that point forward to display the icon.


ExtraInternetCategories location:

/private/var/mobile/Library/Application Support/Front Row/ExtraInternetCategories.plist


Icon cache location (dont delete these files):

/private/var/mobile/Library/Caches/AppleTV/MainMenu

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">







Name



URL

file:///bag.plist







<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">





javascript-url

http://127.0.0.1/Applications/PlexConnect/assets/js/application.js

auth-type

js

enabled

YES

menu-title

PlexConnect

merchant

PlexConnect

menu-icon-url



720

file:///plexconnect.png

1080

file:///plexconnect.png








Also in the install.bash could use a additional part in the script to automate the installation since it needs to restarted to load the plexconnect app anyways:


#Restart AppleTV to load the new plexconnect app

reboot

wahlman... aehm. What is the difference to the two files found in /support/aTV_jailbreak?

Not much at all just trying to fix/address the icon issue mainly.

That was rough trying to update to the latest build of plexconnect on my atv2 and updating Cydia xbmc etc as we’ll since cydia and plexinc and xbmc all decided to upgrade at the same time. Here is how I did it:


apt-get update

apt-get upgrade

apt-get -f install (to fix some errors)

dpkg -i python_2.7.3-3_iphoneos-arm.deb (to reinstall python since the atv decided to downgrade it to 2.5 due to cydia I assume to get it back to 2.7)

I did git pull on the latest version on OSX

Then I backed up my old copy of Plexconnect on my atv and called it PlexConnect2 just in case

I copied over my already setup copy of PlexConnect to my atv via sftp

chmod +x PlexConnect.py

chmod +x PlexConnect.bash

Then I edited my settings.cfg so it would point back to my home server like so:


PlexConnect]

port_pms = 32400

port_webserver = 80

ip_plexconnect = 0.0.0.0

certfile = ./assets/certificates/trailers.pem

ip_dnsmaster = 8.8.8.8

loglevel = Normal

enable_dnsserver = False

logpath = .

ip_pms = yourdyndns.com or wanip

enable_plexgdm = False

hosttointercept = localhost <-------this was new and threw me off with a 404 error and was needed

port_ssl = 443

enable_webserver_ssl = False

prevent_atv_update = True

port_dnsserver = 53

enable_plexconnect_autodetect = False



Once it was done my atv was up to date xbmc 12.3, cydia 1.1.9, plexconnect 3.1+ & mobile ready :wink:



I was having a ton of issues with myplex and this seemed to sort it out on the atv PlexConnect add site added app at least. I only used the support/OSX folder as we’ll for my atv since I don’t need trailers to run PlexConnect.

>> I only used the support/OSX folder as we'll for my atv since I don't need trailers to run PlexConnect.

/support/aTV features option B as well - setting up the addsite manually without a remote webserver.

It also ships with a default Settings.cfg file - with "host to intercept" set to "localhost". :-D

Ehi guys… I’ve used PlexConnect with Trailers and it’s all right, but when I used this guide to ‘upgrade’ plex connect nothing happened. No PlexConnect icon on my Apple TV and I need plex connect on my osx to work. :frowning:

Are you trying to get a plexconnect app on your atv? Where are you stuck?


Yep… During last step, I try to launch ./install.bash, command returns me message, “plex connect already loaded”… But after that No pleconnect processes into my “process list” (called with ps -ef). So no plex on my atv


Sent from my iPad using Tapatalk

Did you chmod +x all the required files?


PlexConnect.bash

PlexConnect.py


Looks like your plist is loaded but PlexConnect isn’t working, yet. There is a lot required to get it to work. It should all be in here though if you look at all the posts. Baa and the rest of us made it a lot easier to get it to work. If you are trying to get the PlexConnect app (bag.plist) to work you need to edit files using sftp to re-enable addsite using FileZilla or another sftp program.


On post #1 there is a link on how to enable addsite:

https://forums.plex.tv/topic/81972-installing-a-new-app-on-appletv-without-hijacking-trailers/


You should be able to use baa’s /support/atV_jailbreak readme also to enable it as we’ll. Multiple users have been able to get it to work it just a matter of reading into it, I have two atv2’s myself that I have put the plexconnect bag.plist onto and it works perfectly in or outside of my LAN.

https://github.com/iBaa/PlexConnect/blob/master/support/aTV_jailbreak/README.txt


Look at option b after doing the prerequisites.


I would look into getting the plexconnect (bag.plist) on there first then figuring out why PlexConnect isn’t working yet.


Did you modify your extrainternetcatagories file to add the bag.plist location? Did you add a plexconnect bag.plist to your atv pointed at your application.js?

https://github.com/iBaa/PlexConnect/tree/master/support/aTV_jailbreak


It looks like option b automates this for you in the readme.

It should be set to 127.0.0.1 even if you use AirPort Extreme:


[PlexConnect]

enable_dnsserver = False

enable_plexconnect_autodetect = False

ip_plexconnect = 127.0.0.1

hosttointercept = localhost


Your PlexConnect app needs to connect to your atv running plexconnect.

Oohhh yeah guys… It’s work :slight_smile: :slight_smile: thAnk you !!


Sent from my iPad using Tapatalk

Hey guys… Today atv shows me this message error (attached)! What’s the problem?! :frowning: 4a2a8u4y.jpg


Sent from my iPad using Tapatalk

Nice... have never seen this one before.

- used in the PreplayScreen - isn't supported on aTV firmwares before 5.1 or so... Which version are you running?

Is this just a specific channel or immeditately on clicking trailers?

I use os 5.1… The message err is showing only when I’m clicking on files! I can enter in plex connect (in Apple TV), scroll my files but when I try to watch the message error appears!!! Seems it not loaded pre-play view, with info view, description ecc…
Channel is al right…


Sent from my iPad using Tapatalk

...so maybe it was introduced with 5.2?