Disable updater if using Python 2

This commit is contained in:
JonnyWong16 2020-12-19 14:59:05 -08:00
parent 2e5dd05a6c
commit 397f18c435
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 44 additions and 1 deletions

View file

@ -4351,6 +4351,8 @@ class WebInterface(object):
@cherrypy.expose
@requireAuth(member_of("admin"))
def update(self, **kwargs):
if plexpy.PYTHON2:
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT + "home?update=python2")
if plexpy.DOCKER or plexpy.SNAP:
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT + "home")