styxit / HTPC-Manager

A fully responsive interface to manage all your favorite software on your Htpc.
http://htpc.io
MIT License
529 stars 183 forks source link

Plex integration #16

Closed svenvg93 closed 10 years ago

svenvg93 commented 11 years ago

Will there be in the future integration with Plex?? and possibly in what time frame???

phillpafford commented 11 years ago

This would be awesome!!!

mannerisms commented 11 years ago

I second that..

chrisallen commented 11 years ago

+1 I would love this!

maxsmart commented 11 years ago

I'm also extremely interested in this. I made the switch over from xbmc to Plex (along with many others) and it would be great to see it supported.

tahngarth commented 11 years ago

+1

wazoo commented 11 years ago

+1 this would rock. Especially support for remote and remote playing ("play this on xyz device").

jkaberg commented 11 years ago

+1.. This is whats keeping me from installing this fine piece of software atm ;)

shapetheLOLa commented 11 years ago

+1, would be awesome. Im already using this without plex because its even great just for couchpotato / sickbeard, but plex would make it even better

styxit commented 11 years ago

I do not use Plex myself at the moment. Therefore i am not working on this any time soon.

If there is someone who would like to work on this feature, i would be happy to help you get started.

shapetheLOLa commented 11 years ago

I dont have much experience in programming tbh but would be willing to do it if you could provide me with any info how to do so :)

shapetheLOLa commented 11 years ago

Im just starting to read myself into python, Im gonna give it a try later as this could be really useful. If you have any help to get me started just let me know

svenvg93 commented 11 years ago

Maybe you can use the XBMC Code. Plex is a fork of XBMC

shapetheLOLa commented 11 years ago

Dont think so. The client is, but we need to access the server

sparklyballs commented 11 years ago

i don't know if it ail help but you could try looking at the plex plugin for xbmc for pointers. i believe it was called plexbmc.

On 13 Aug 2013, at 15:23, shapetheLOLa notifications@github.com wrote:

Dont think so. The client is, but we need to access the server

— Reply to this email directly or view it on GitHub.

shapetheLOLa commented 11 years ago

Im gonna look into plex integration of a maraschino fork, also based on python. Its not implemented very good, but I think its a start

sparklyballs commented 11 years ago

http://forum.xbmc.org/showthread.php?tid=92310 for plexbmc On 13 Aug 2013, at 15:23, shapetheLOLa notifications@github.com wrote:

Dont think so. The client is, but we need to access the server

— Reply to this email directly or view it on GitHub.

svenvg93 commented 11 years ago

Maybe you can ask around on the Plex forum.

http://forums.plexapp.com/

shapetheLOLa commented 11 years ago

Gonna do that later on, first I need some basic python fundamentals, but I doubt it will take long, looks all very basic as most programming languages

sparklyballs commented 11 years ago

plexbmc accessed the server side of plex, i used to use it at one time until i went over to a mysql based xbmc setup for sharing a library. And being xbmc chances are it's probably written in python too.

shapetheLOLa commented 11 years ago

I know what youre talking about, Ive used pleXBMC for a long time. Its just that maraschino is(was) already doing something very similar to HTPC-Manager.

shapetheLOLa commented 11 years ago

But dont get me wrong, I dont mind you trying it also :)

styxit commented 11 years ago

If i am correct, PleXBMC is a plugin. I do not recommend building HtpcManager integration based on a plugin. This means everybody has to install the plugin before they can use htpcManager with Plex. Plex has an api. I would prefer we directly use the Plex Api

shapetheLOLa commented 11 years ago

I never said I was going to write a plugin so HTPC-Manager can access it. Thats why I said Im gonna look into Maraschino as they were using the Plex API already and did something similar

sparklyballs commented 11 years ago

I was suggesting to look at plexbmc for pointers on interacting with the plex server, not suggesting a plugin for htpcmanager. i believe plex has a more complex directory structure (for want of better terminology) to access media, at least in the gui for the client side of plex it appears that way compared to xbmc , so thought maybe looking at the code for plexbmc might help with that.

On 13 Aug 2013, at 15:38, shapetheLOLa notifications@github.com wrote:

I never said I was going to write a plugin so HTPC-Manager can access it.

— Reply to this email directly or view it on GitHub.

styxit commented 11 years ago

If you were talking about plexbmc just to get an idea on how the Plex api works, i encourage that!

maxsmart commented 11 years ago

https://github.com/iBaa/PlexConnect

This might be a good starting point to see a python app that directly interfaces with the Plex API to bring back media. It's basically a DNS capture app that redirects requests for the Apple TV really well done.

svenvg93 commented 11 years ago

Keep up the good work, Keep us posted.

fldc commented 11 years ago

Plex actually provides api docs, that would be the best place to start ;-)

svenvg93 commented 11 years ago

Any update on this ?????

svenvg93 commented 10 years ago

what is the status????

styxit commented 10 years ago

I don't think anyone is working on this at the moment.

bcornett commented 10 years ago

+1 - I know a few people who would love Plex integration.

maxdmyers commented 10 years ago

I'm working on this. I've got authentication down, but as a non-Python dev it's taking me some time. I should have a working demo in the next couple days. I'll submit a pull request when it's ready.

Although, there are two ways this can be done. Either we sign in using MyPlex (current method I used) or connect directly to the server. From MyPlex it would work the same for the most part (including the ability to control the client or stream to the device, if I'm correct). I favored this version simply due to the simplicity. The only thing you need to provide is your MyPlex username and password, rather than host, port, api key, username, password, etc.

Thoughts?

styxit commented 10 years ago

I am happy to see someone picked this up!

MyPlex is an external Application? I would prefer connection directly to the (local) plex server. This ways you do not depend on a 3rd party or an internet connection. All other modules are using the direct-connect method.

shapetheLOLa commented 10 years ago

http://wiki.plexapp.com/index.php/MyPlex/de

What is myPlex?

myPlex is a free service from Plex that lets you watch your media over the internet, share it with friends, or bookmark interesting videos for later viewing. The service makes configuring your network for these functions much simpler than before. Even people with little technical knowledge will be able to use the sophisticated media-sharing features. Here's a quick run-down of those services:

maxsmart commented 10 years ago

I think MyPlex is a great way to go on this, provides easy configuration and can be tailored to a specific user.

maxdmyers commented 10 years ago

@maxsmart Random, but are you the Maxwell Smart from theoldcomputer forums years ago?

I'll let people vote between direct and MyPlex methods. If there's enough interest in both, I can try to implement both methods.

styxit commented 10 years ago

There is no need to do both.

Until now, Htpc Manager did not rely on an internet connection. Just a connection on the local network was enought to contact all other programs. Maybe it is time to let that 'restriction' go and just that myPlex version if that works better.

Besides the login detail, what are the differences between the Api's? Any interesting functions that myPlex has and the default plex has not?

svenvg93 commented 10 years ago

Redirect myplex to an internal or external ip? If iT redirect through external ip you need a port forwarding and NAT translation on your router.

And do you only see your own servers or also shared servers.

shapetheLOLa commented 10 years ago

The problem using only myplex is the following : There are some (or even a lot) users who can't access their server from their outside network. As this is a must to use Myplex (you need to open a port for it) some won't be able to use plex in HTPC-Manager because of this.

Im one of them :/

styxit commented 10 years ago

There you go. Sounds to me like using the external myplex service, is probably not the wat to go.

maxdmyers commented 10 years ago

Noted! I'll work on the authentication more to swap methods. Shouldn't take too long, and then I'll move on to the actual functionality. Would people like to simply control Plex or be able to play the media direct from HTPC-Manager as well?

shapetheLOLa commented 10 years ago

As for me I don't need to play it in HTPC-Manager or control plex

svenvg93 commented 10 years ago

I won't play from the manager, but maybe control Will be handy just like the plex web client. image

styxit commented 10 years ago

@maxdmyers A Video-player within the HTPC Manager interface will not be so easy. Because HTPC Manager is like a proxy for the connection to plex, the actual video stream would also have to go through HTPC Manager.

I do not know how to do this pass-through for a video stream and this will probably also be a big performance hit.

We have talked about the same thing for xbmc-video's and decided not to do it.

svenvg93 commented 10 years ago

I guess one way to connect to plex is the best option instead of two. And specially local based instead of myplex.

wazoo commented 10 years ago

I would like to add a vote for an option to use MyPlex, maybe both is the way to go.

svenvg93 commented 10 years ago

@wazoo Why MyPlex???? What are the benefits of MyPlex

wazoo commented 10 years ago

I don't want to have to manage two sets of credentials, I see the use case for not using it for sure and it would work for me either way, I was just registering my vote :)

svenvg93 commented 10 years ago

@maxdmyers is there has been some progress??