HTPC-Manager icon indicating copy to clipboard operation
HTPC-Manager copied to clipboard

Feature request: PlexPy

Open yeyeoke opened this issue 8 years ago • 42 comments

I'd like to request a feature integration of PlexPy, would be great to have it integrated in HTPC-manager and I do believe PlexPy has a working api.

yeyeoke avatar Apr 22 '16 21:04 yeyeoke

Ye, i know. I have played some with it:) My main problems is the css, i think plexpy looks so beautiful and i suck at css.

Hellowlol avatar Apr 22 '16 21:04 Hellowlol

Sadly my knowledge of CSS is worse than yours by far, that much I'm sure of.

yeyeoke avatar Apr 24 '16 15:04 yeyeoke

I would also love to see you add this module.

Mosalar avatar Aug 09 '16 22:08 Mosalar

Wound up here trying to find this addon myself in the quest for the most magnificent pi3/mate media server manager.

I actually am rather fluent in css - I have done it for a living (among other things, unfortunately no python knowledge).

If needed I am happy to put forth some help on the css side of things. If you handle the API and throw all the necessary elements into the page (without formatting etc) I SHOULD be able to get it set up nice and tidy.

JonSingleton avatar Oct 07 '16 03:10 JonSingleton

I can do the python part, im just as bad with js as css do would have to do that aswell :P.

If you want i can make skeleton you can play with. What do you need?

Hellowlol avatar Oct 07 '16 14:10 Hellowlol

I'd imagine to most used options would be the fields from notification settings, notification setup, and monitoring settings. I can't see any reason to have anything in it that has to do with plexpys display or anything just General plexpy settings that aren't already included in the Plex module.

Myself personally I'd be fine with just the notification options etc, but anything more you feel should be available is fine too, if you do that I'd like to get it out as a full module for anyone who wants it 😀

On Friday, October 7, 2016, Hellowlol [email protected] wrote:

I can do the python part, im just as bad on the js :P.

If you want i can a skeleton you can play with. What do you need?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Hellowlol/HTPC-Manager/issues/460#issuecomment-252262836, or mute the thread https://github.com/notifications/unsubscribe-auth/ATTHqVQhDC2dPkG2cMpqWQHZT3XX6IXDks5qxlMygaJpZM4IN-Pz .

Sent from my iPhone

JonSingleton avatar Oct 07 '16 14:10 JonSingleton

@JonSingleton You can play with https://github.com/Hellowlol/HTPC-Manager/tree/plexpy_sekel

It has all the same methods as plexpy api, all json response should work. it still need some work for images etc, but its a start.

Hellowlol avatar Oct 08 '16 12:10 Hellowlol

I'll give this a gander today or tonight. Fast work, were you working on this already?

On Saturday, October 8, 2016, Hellowlol [email protected] wrote:

@JonSingleton https://github.com/JonSingleton You can play with https://github.com/Hellowlol/HTPC-Manager/tree/plexpy_sekel

It has all the same methods as plexpy api, all json response should work. it still need some work for images etc, but its a start.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hellowlol/HTPC-Manager/issues/460#issuecomment-252422034, or mute the thread https://github.com/notifications/unsubscribe-auth/ATTHqU9sz-ymf6r1YTsP3dDzpTeaxgckks5qx4yBgaJpZM4IN-Pz .

Sent from my iPhone

JonSingleton avatar Oct 08 '16 13:10 JonSingleton

No, I just made it since you showed interest. The modules has a lot in common so it's fast to add the Python part.

The endpoints correspond to plexpy API. So if you want the plexpy log you can:

Host:port/plexpy/get_logs?param=value1&param2=value2

Hellowlol avatar Oct 08 '16 14:10 Hellowlol

Is there some progress here? Can i help with some testing?

WzL avatar Nov 03 '16 15:11 WzL

I've been unable to review or test in any way. Busy season at work, and being hourly makes for a fantastic paycheck. You should just be able to test that branch.

On Thursday, November 3, 2016, WzL [email protected] wrote:

Is there some progress here? Can i help with some testing?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hellowlol/HTPC-Manager/issues/460#issuecomment-258174821, or mute the thread https://github.com/notifications/unsubscribe-auth/ATTHqc0zVfdOLsQf0Rp7m51Jm6d0n0pLks5q6fxwgaJpZM4IN-Pz .

Sent from my iPhone

JonSingleton avatar Nov 03 '16 15:11 JonSingleton

There is no progress. The entire front end is missing. The backend need to be secured but the branch was just to get the ball rolling

Hellowlol avatar Nov 03 '16 15:11 Hellowlol

I can help with the css

blackley avatar Nov 25 '16 08:11 blackley

Awesome, i still have to do the html and the js, i dont wasnt to do that :P. The branch supports everything that plexpy supports

Hellowlol avatar Nov 25 '16 16:11 Hellowlol

https://github.com/Hellowlol/HTPC-Manager/issues/513

Hellowlol avatar Jan 02 '17 12:01 Hellowlol

https://github.com/Hellowlol/HTPC-Manager/issues/350

Hellowlol avatar Jan 02 '17 12:01 Hellowlol

When switching to this branch and trying to run Htpc.py multiple errors appear. Pulled it down so I could look at the HTML and CSS front end.

Traceback (most recent call last): File "Htpc.py", line 264, in <module> main() File "Htpc.py", line 249, in main load_modules() File "Htpc.py", line 111, in load_modules htpc.ROOT.plexpy = Plexpy() File "C:\Users\jbart\HTPC-Manager\modules\plexpy.py", line 35, in __init__ self._build_methods() File "C:\Users\jbart\HTPC-Manager\modules\plexpy.py", line 66, in _build_methods r = cls._fetch(**{'cmd': 'docs'}) File "C:\Users\jbart\HTPC-Manager\modules\plexpy.py", line 95, in _fetch r = requests.get(url) File "C:\Users\jbart\HTPC-Manager\libs\requests\api.py", line 69, in get return request('get', url, params=params, **kwargs) File "C:\Users\jbart\HTPC-Manager\libs\requests\api.py", line 50, in request response = session.request(method=method, url=url, **kwargs) File "C:\Users\jbart\HTPC-Manager\libs\requests\sessions.py", line 451, in request prep = self.prepare_request(req) File "C:\Users\jbart\HTPC-Manager\libs\requests\sessions.py", line 382, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "C:\Users\jbart\HTPC-Manager\libs\requests\models.py", line 304, in prepare self.prepare_url(url, params) File "C:\Users\jbart\HTPC-Manager\libs\requests\models.py", line 365, in prepare_url raise InvalidURL("Invalid URL %r: No host supplied" % url) requests.exceptions.InvalidURL: Invalid URL u'http://:/api/v2?apikey=&cmd=docs': No host supplied

strikerjjb avatar Jan 26 '17 15:01 strikerjjb

You need to enter plexpy API credentials on the settings page. There is no HTML or CSS. It's only backend code.

Hellowlol avatar Jan 26 '17 15:01 Hellowlol

That would make sense but Htpc.py won't even complete build/run to allow a user to get to the front end to change it as the web server never initiates given the errors.

strikerjjb avatar Jan 26 '17 15:01 strikerjjb

Ok. It's a easy fix but I don't have time now. I'll ping you once it's done.

Hellowlol avatar Jan 26 '17 16:01 Hellowlol

All I started working on this and I was wondering what do people want to see on a plex py page? Right now a simple start I have is this: image

strikerjjb avatar Feb 20 '17 20:02 strikerjjb

I guess graphs/stats dunno. Nice start!

Hellowlol avatar Feb 20 '17 21:02 Hellowlol

I would like to see details from the History page most importantly and details from the plexpy home page

blackley avatar Feb 21 '17 00:02 blackley

Alright I have the main javascript coded in for the poster view pretty much done. I will probably make a tabbed view and lay in a section each for history and collection stats. image

Example of Tabbed View: image

strikerjjb avatar Feb 24 '17 02:02 strikerjjb

Nice!

Hellowlol avatar Feb 24 '17 08:02 Hellowlol

@blackley Can you look at my last post and does the watch stats cover what you meant by plexpy homepage? History is next then I will talk to Hellowlol about getting this branch updated for folks to test.

strikerjjb avatar Feb 24 '17 18:02 strikerjjb

@Hellowlol I am getting close on this how do you want me to submit the code given this is a separate branch?

strikerjjb avatar Mar 02 '17 19:03 strikerjjb

just open a pr for the same branch ill take it from there.

Hellowlol avatar Mar 02 '17 20:03 Hellowlol

I don't have anything to add other than I'm very excited for this - I originally logged in to post a feature request for PlexPy to at least show "what's playing" - it looks like we'll have more then that!

Awesome! :D

mauirixxx avatar Mar 03 '17 20:03 mauirixxx

You know the plex module already has a what playing?

Hellowlol avatar Mar 03 '17 20:03 Hellowlol