iBaa / PlexConnect

Plex @ aTV - think different...
Other
1.9k stars 626 forks source link

Latest v. Plex Server, running v0.7.4 is running slow w. remote servers not loading/playing #608

Open mcsestak opened 3 years ago

mcsestak commented 3 years ago

Hardware: Apple TV 3rd Gen - v7.8 Software: PlexConnect v0.7.4 - Plex Server 1.24.3.5033

LAN playback of videos works fine, but there is suddenly a major lag-time in accessing menus and videos from a Remote Server connection.

Movie thumbnails on the remote server do not load and videos do not play when accessing from the Apple TV. The remote server content plays fine when accessed through the iPhone Plex app.

moodyblue commented 3 years ago

Can you please share one of your libraries with moody_blue so that I can test ?

dino0401 commented 3 years ago

Exactly same problem with @mcsestak . (same Hardware and Software)

Even though 'Strict TLS configuration enabled' is not checked, following problem happens after updating plex server. "You can't use remote libraries (owned or shared) hosted in a PMS that has Strict TLS configuration enabled (access is permited, thumbnails and fanart will not be shown, and play fails)"

moodyblue commented 3 years ago

@dino0401 When Strict TLS is checked on the PMS side PlexConnect can't use its libraries. It's a python2 limitation. You have two options: 1) Disable Strict TLS 2) Wait for the upcoming PlexConnect version, based in python3, and hope that it can address this problem

dino0401 commented 3 years ago

@dino0401 When Strict TLS is checked on the PMS side PlexConnect can't use its libraries. It's a python2 limitation. You have two options:

  1. Disable Strict TLS
  2. Wait for the upcoming PlexConnect version, based in python3, and hope that it can address this problem

Since No 1 doesn't work any more for the recent PMS Server, I've no choice but to wait next version of PlexConnect. If I can ask the PMS owner to downgrade PMS, It could be temporary 3rd option.

Thanks for your reply.

moodyblue commented 3 years ago

Since No 1 doesn't work any more for the recent PMS Server,

I'm using PMS 1.24.4.5081 (to my knowledge the latest version) and the option to enable/disable TLS is still there. I'm able to play my media (I'm logged in to plex.tv to use plex pass) without any problem.

dino0401 commented 3 years ago

Since No 1 doesn't work any more for the recent PMS Server,

I'm using PMS 1.24.4.5081 (to my knowledge the latest version) and the option to enable/disable TLS is still there. I'm able to play my media (I'm logged in to plex.tv to use plex pass) without any problem.

Oh really?, does it work for remote play? it only happens when I connect to remote server. The latest PMS version for Synology and QNAP is 1.24.3.5033. This problem started to happen with this version. There's 'Strict TLS' option in 5033, but it doesn't work.

I think there's a chance it could be fixed in the next version for Synology and QNAP like yours, 5081.

moodyblue commented 3 years ago

@dino0401 I do not share my libraries and nobody shares their libraries with me, so I can't test if my PlexConnect can access remote libraries, or if a remote PlexConnect can share mine. But I can open one of my libraries for testing, if you want, and test my PlexConnect with one of your libraries, if you allow me (userid moody_blue)

dino0401 commented 3 years ago

@moodyblue I've shared one of my libraries with you. You can test if it show images and plays well. My PMS's version is 1.24.3.5033 running on Synology. My id using PlexConnect is 'jj203'. If you share one of your libraries for testing, I'll do it and let you know how it works.

moodyblue commented 3 years ago

@dino0401 Thanks. PlexWeb can play your library but PlexConnect can't (I see fanart, but posters are black and play gives an error). I've shared one of my libraries with jj203 so that you can test on your side.

Are you saying that this problem started with PMS 1.24.3.5033 ?

dino0401 commented 3 years ago

@dino0401 Thanks. PlexWeb can play your library but PlexConnect can't (I see fanart, but posters are black and play gives an error). I've shared one of my libraries with jj203 so that you can test on your side.

Are you saying that this problem started with PMS 1.24.3.5033 ?

I tested yours and it's same here. No problem with Web, but no poster images and no playing with PlexConnect. I guess this problem started less than 10 days ago, right after updating to latest 1.24.3.5033. Before then, it had no problems.

moodyblue commented 3 years ago

I've installed PMS 1.24.2.4973, can you pls test if your access is ok ? You may need to reboot the ATV in order to clear the cache.

dino0401 commented 3 years ago

I've installed PMS 1.24.2.4973, can you pls test if your access is ok ? You may need to reboot the ATV in order to clear the cache.

I did restart ATV3 and PlexConnect. It's still same. No images, Error for playing. I can only see your library list.

I think I need to tell you something else. My PMS and PlexConnect-0.7.4 are running on Synology DSM 6.2. Maybe around a week ago, ATV3 suddenly couldn't find remote servers. Log showed 'certificate_verify_failed' for remote servers. I googled and found some helps to skip certification check. I modified PlexAPI.py like following.

import ssl # added .... ssl._create_default_https_context = ssl._create_unverified_context # added response = urllib2.urlopen(request, timeout=20)

After I did this, PlexConnect found remote servers again but no images, no playing.

Just in case, I restored PlexAPI.py to original file and tried again, but failed even finding your server. So now, If I don't skip certification check like above, I can't connect remote servers and see libraries.

I think this doesn't make sense because I think certification is related to python 2.7.x. It started to happen without updating Synology OS(DSM).

I'm not sure this problem is related to certification problem.

moodyblue commented 3 years ago

Plex Inc. changed the certs, yes. What python version are you using ? I'm using 2.7.14 and I see your library.

dino0401 commented 3 years ago

Plex Inc. changed the certs, yes. What python version are you using ? I'm using 2.7.14 and I see your library.

Mine is 2.7.12.

mcsestak commented 3 years ago

@moodyblue Does it seem that updating Python is the solution? Like @dino0401, I also have v2.7.12.

I see that v2.7.18 is available here: https://www.python.org/downloads/release/python-2718/

dlgoodr commented 3 years ago

Hey, can you try my in-progress python3 fork, too? https://github.com/dlgoodr/PlexConnect/tree/py3

607

dino0401 commented 3 years ago

@mcsestak I updated Python on Synology to 2.7.18, but failed playing remote videos. It doesn't display poster images. Since couple weeks ago, PlexConnect only works for local servers.

@dlgoodr I've tried python3 fork with python3, but It coundn't find remote servers. It found out local servers but failed to connect. It means it only shows local server's library names but fails to enter into libraries.

I'm using ATV3 + Synology DSM 6.2.3(local, PlexConnect & Plex Media Server)

dlgoodr commented 3 years ago

K. I'll have to stand up a second server to test that case.

dlgoodr commented 3 years ago

Oh - have you tried the py3 branch in the last 12 hours? I only just fixed finding servers when you log in.

dlgoodr commented 3 years ago

stood up a second Plex server on my LAN, both were discovered. let's see how plex on a t2.micro works 😀

mcsestak commented 3 years ago

@dlgoodr @moodyblue I noticed in another thread - https://github.com/izznogooood/docker-plexconnect/issues/6#issue-1016286686 @navhawk80 mentioned that upgrading Python to 2.7.18 might fix the issue? Just curious if you've tried this already. Thank you!