MyPlex on PlexConnect

i to hope that both PlexConnect team and MegaHambone can set up a meeting/call as you all are very talented dev's and i'm very very jealous for your talent. So pls for good order sake listen to each other. Learn from each other and hopefully your discussion/conversation will lead to heaven.

Still want to thank you all for your efforts and hard/long work to make this possible for the Plex Community and as you said it would be a shame to see all of your hard work go away.

Hi guys,

Great work, it's amazing what you can do! I have no idea how you have done it but it works really nice for me...

Thanks for all the hard work

MegaHambone, Great Work.  It works pretty well.  Thanks for the time you have put in.  I would like to eventually see this merged as one but I understand the differences in code are huge.  

One thing I noticed after just using it for a few minutes is that the quality profiles may not be working properly from remote servers.  It will transcode everything from my cloud VPS server but direct streams from my local server.  Is there a quality from remote vs quality from local setting I am missing somewhere?

Also, I noticed that the local section and myPlex sections all show up under the "local sections" and then just the myplex sections from remote servers show up under myPlex sections.  So under local I have Movies section from my local server and Movies from my VPS server.  Is this normal for your code?

Just reporting my findings.  Thanks for your contributions to the myPlex problem.

myPlex remote servers are set to force transcode, 2.0 mbps 480p. This is hard coded for now - a quick edit to line 1095 is where you can set it for faster upstream servers.

(I set it to what typical upstream is here in Canada.. ugh)

myPlex servers that can be hit with a local IP are added to local settings. This is by design, though I have no personal preference.

What file is the setting in, Is it in your new file PlexMgr?

in XMLConverter.py, specifically the function ATTRIB_MEDIAURL

if token!="":  
   g_ATVSettings.setSetting(UDID, 'transcodequality', '480p 2.0Mbps')  

Change that to any valid transcodequality (refer to ATVSettings.py for valid options)

The logic of this is that any server with a token (only true if the server is a myplex server) will force transcode. One day I'll change it so that there's a "Remote Transcode" setting, like a normal plex app.

I am very new to PlexConnect but have managed to get it working by running it manually (no apache or init.d scripts for start up) since I just want to get things working first.

I also cloned the myplex repo and am need of further help since I can not get it working. 

I have 3 local plex servers and also 3 myplex user accounts.  All 3 servers use one 'master' myplex user id, so the other ones will connect as a 'guest'.  This is being done as a make shift parental control mechanism.

Once I entered a 'guest' myplex username it was successful in getting the key, but was not able to connect to the server.  

To simplify things I turned off all but one of my local plex servers.  The plex server I have turned on requires authentication on local network.  GDM is enabled.  

So to start fresh:

- I just deleted all the .cfg files and ran PlexConnect.py (myplex repo)

- 'Click' on Trailers logo to start plex

- I immediately see a 'No response from server message'.  I figure that's fine since we have not yet logged into myplex

- Settings and login to my plex.

- get a message that it was successful.  

- I go back to setting page

- then I try to see if anything in the library but get the same message 'No response from server'

Seems like it is not authorizing me:

5:49:08 PlexMgr: Nothing doing. Cache time less than 1h threshold
15:49:08 PlexMgr: Nothing doing. Cache time less than 1h threshold
15:49:08 XMLConverter: HTTP response error: 401 Unauthorized
15:49:08 XMLConverter: No Response from Plex Media Server

Here is a representation of the data in ATVSettings.cfg.  None of the key or user id is real, I made it random for this post incase its private.

...
actorview = Movies
movies_navbar_genres = checked
 
[007]
 
[C18HN86XCCW5]
pms_uuid = 325407987980fff534bca74348734dfa676c9872
transcodequality = 720p 4.0Mbps
myplexuser = user1
myplex_uuid = fdhjjkFYUI786fsDfdfd

This will give my atvs each own view state ? I’m considering plex pass but wanna make sure this works well.thanks

This will give my atvs each own view state ? I'm considering plex pass but wanna make sure this works well.thanks

Same here.  I have a plex pass used on the server and am using 2 other non plex pass account to manage parental controls and view states.  So if I get this working I will let ya know.

Same here.  I have a plex pass used on the server and am using 2 other non plex pass account to manage parental controls and view states.  So if I get this working I will let ya know.


Great.looking forward to it.. Maybe upload a video?

I'm pretty sure I'm actually dropping the token for plex servers on the local network found with myPlex. I had NO idea that local auth-only was a usage case to account for, but I understand what you're doing.

The code to fix this is in plexmgr - make sure what when the server is added locally that the key is preserved. It will break some of my logic and will push the local server into the myplex section, so I will need to change some code to implement it "properly" - I am nowhere near my dev laptop, so I won't be able to fix this at the moment, but I can fix it when I get a chance.

I've made some changes to implement local myPlex servers with token authentication. I do not have this usage case here at home, so please test my newest repo and let me know.

Please note that for now, I haven't adjusted transcoding settings, because I want confirmation that it works before I go crazy implementing a ton of new stuff, so even if it does work, your local quality will be hardcoded to 2.0mbps 480p. If it works, let me know and I'll make the changes necessary to facilitate direct play for local myplex libraries.

I decided to go for broke and add all the stuff to make directplay work. I've tested it and it works on my setup, but I don't have local myplex - so there's no guarantees at this time.

Let me know if it works or if there's just more bugs. I'll take it on from there.

I replied to you on your github PR page.

You are awesome for taking on this challenge; thanks so much!!!!

Yeah!!!!! myplex is now working with multiple local servers.
 
I have 3 servers locally that require authentication. I set up a myplex user to gain access to all 3 servers via myplex authentication. They are mapped from my public ip address like:
 
- public.ip:32400 -> 192.168.1.20:32400
- public.ip:32401 -> 192.168.1.21:32400
- public.ip:32402 -> 192.168.1.22:32400
 
myplex correctly identifies local servers and ports (gdm must be enabled)

hey megahambone. I downloaded today's repository and media library won't show

How do i view the the myplex library? Ive downloaded todays latest repos and have manged to sign into myplex from the settings screen?

Ayy help would be appreciated, thanks

It's not ready yet. The login is mostly implemented but actually doing anything beyond that is not yet implemented. 

Keep patient!

Just got plex pass but don’t know know how to set up independent view states. I have 2 atvs under the same network and each are signed in a different username and the shared . How do I get this to work?

It's not ready yet. The login is mostly implemented but actually doing anything beyond that is not yet implemented. 

Keep patient!

Last nights build works for me.  Login and then under settings click on the discover button.  If your sections are not showing up try rebooting the atv maybe.

I have it working with 3 local servers accessing via myplex.

Note channels are not yet working with myplex, and watched status was not yet updating for me on a ATV with ios6.

EDIT: Make sure GDM is enabled

Just got plex pass but don't know know how to set up independent view states. I have 2 atvs under the same network and each are signed in a different username and the shared . How do I get this to work?

What I did was in the plex media server settings, I click advanced and under the myplex menu option I enable ('check') the 'Require authentication on local networks' option.  This means that any client trying to connect to the server will require authentication via myplex and then will have own view status for sure.

If you have some other local clients on the network that can not auth, you can allow them by going into the network menu option in advanced mode on the plex media server and create an entry like this in the 'List of networks that are allowed without auth' text box:

127.0.0.1/255.255.255.255, 192.168.1.40/255.255.255.255

This will allow a local client with IP address of 192.168.1.40 to connect to plex media server without myplex authorization.