From ca001a951f04fea306784b9192bad610d6015c44 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 25 Feb 2018 13:00:46 +0100 Subject: [PATCH] Don't repeatedly check plex.tv connection if offline - Fixes #415 --- .../resource.language.en_gb/strings.po | 4 ---- resources/lib/initialsetup.py | 20 ------------------- 2 files changed, 24 deletions(-) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 4e6a0254..b1a9193b 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -1670,10 +1670,6 @@ msgctxt "#39213" msgid "is offline" msgstr "" -msgctxt "#39214" -msgid "Even though we signed in to plex.tv, we could not authorize for PMS" -msgstr "" - msgctxt "#39215" msgid "Enter your Plex Media Server's IP or URL, Examples are:" msgstr "" diff --git a/resources/lib/initialsetup.py b/resources/lib/initialsetup.py index bd756f6b..aa92173f 100644 --- a/resources/lib/initialsetup.py +++ b/resources/lib/initialsetup.py @@ -317,7 +317,6 @@ class InitialSetup(object): Returns server or None if unsuccessful """ https_updated = False - checked_plex_tv = False server = None while True: if https_updated is False: @@ -340,25 +339,6 @@ class InitialSetup(object): server['scheme'] = 'https' https_updated = True continue - if chk == 401: - LOG.warn('Not yet authorized for Plex server %s', - server['name']) - if self.check_plex_tv_sign_in() is True: - if checked_plex_tv is False: - # Try again - checked_plex_tv = True - https_updated = False - continue - else: - LOG.warn('Not authorized even though we are signed ' - ' in to plex.tv correctly') - dialog('ok', - lang(29999), - '%s %s' % (lang(39214), - try_encode(server['name']))) - return - else: - return # Problems connecting elif chk >= 400 or chk is False: LOG.warn('Problems connecting to server %s. chk is %s',