styxit / HTPC-Manager

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

Plex integration not working #364

Closed nickisagod closed 8 years ago

nickisagod commented 8 years ago

Hi, I am new to HTPC however i cannot setup Plex integration. please see the logs below -

2015-12-07 21:09:33 modules.plex ERROR Unable to contact Plex via http://192.168.0.4:32400 error HTTP Error 401: Unauthorized

Any help would be greatly appreciated as I have everything else working perfect and it seems to be the perfect solution. Thanks in advance, Nick

joemcmonagle commented 8 years ago

Nick, Any chance you can share the fix for this error? I'm having the same issue.

/J

Hellowlol commented 8 years ago

using ssl?

nickisagod commented 8 years ago

J

I ended up using a different fork (the hellowlol one) as this had the sonarr integration I wanted as well. Plex setup was fine with it. Sorry I know that's not a lot of help. Worth throwing a question on reddit.com/r/plex as they can answer most things straight off.

Hellowlol commented 8 years ago

Alright, im glad you got it sorted.

joemcmonagle commented 8 years ago

Thanks Nick. I'm currently on the master2 branch. I have Plex configured with Preferred SSL and HTPC configured with no SSL. I have plex configured with a letsencrypt cert. I'm seeing the same error as in Nick's original post

Hellowlol commented 8 years ago

@joemcmonagle Since you are refering to my fork, please read the issue guidelines and open a new issue on my fork.

MattTwinkleToes commented 7 years ago

the problem is that is the url that it tries is incomplete, it requires a plex token, without one plex returns 404 unauthorised. I have tried to trick htpc manager into sending the complete string but because there is no configuration option to include the plex token it just adds status/sessions at the end of everything.

http://pmsip:32400/status/sessions

should be

http://pmsip:32400/status/sessions?X-Plex-Token=yourtokenhere

How frustrating! I dont want to go into he scripts and hack away at them to get this to work.