Do not check plex.tv connection on startup

This commit is contained in:
tomkat83 2018-01-07 15:20:25 +01:00
parent 607fdab326
commit 36bcd70c9d

View file

@ -9,7 +9,7 @@ import xbmcgui
from utils import settings, window, language as lang, tryEncode, \ from utils import settings, window, language as lang, tryEncode, \
XmlKodiSetting, reboot_kodi XmlKodiSetting, reboot_kodi
import downloadutils from downloadutils import DownloadUtils as DU
from userclient import UserClient from userclient import UserClient
from PlexAPI import PlexAPI from PlexAPI import PlexAPI
@ -29,7 +29,6 @@ class InitialSetup():
def __init__(self): def __init__(self):
LOG.debug('Entering initialsetup class') LOG.debug('Entering initialsetup class')
self.doUtils = downloadutils.DownloadUtils().downloadUrl
self.plx = PlexAPI() self.plx = PlexAPI()
self.dialog = xbmcgui.Dialog() self.dialog = xbmcgui.Dialog()
@ -87,7 +86,7 @@ class InitialSetup():
LOG.info('plex.tv connection with token successful') LOG.info('plex.tv connection with token successful')
settings('plex_status', value=lang(39227)) settings('plex_status', value=lang(39227))
# Refresh the info from Plex.tv # Refresh the info from Plex.tv
xml = self.doUtils('https://plex.tv/users/account', xml = DU().downloadUrl('https://plex.tv/users/account',
authenticate=False, authenticate=False,
headerOptions={'X-Plex-Token': self.plexToken}) headerOptions={'X-Plex-Token': self.plexToken})
try: try:
@ -427,11 +426,6 @@ class InitialSetup():
# Do we need to migrate stuff? # Do we need to migrate stuff?
check_migration() check_migration()
# Optionally sign into plex.tv. Will not be called on very first run
# as plexToken will be ''
settings('plex_status', value=lang(39226))
if self.plexToken and self.myplexlogin:
self.CheckPlexTVSignIn()
# Initialize the PKC playqueues # Initialize the PKC playqueues
PQ.init_playqueues() PQ.init_playqueues()