Disable updater if using Python 2

This commit is contained in:
JonnyWong16
2020-12-19 14:59:05 -08:00
parent 2e5dd05a6c
commit 397f18c435
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")