Switch from xml.etree.cElementTree to .ElementTree

cElementTree has issues, e.g. during Kodi user profile switch
This commit is contained in:
tomkat83 2016-03-23 09:42:59 +01:00
parent 8308665183
commit feb01b748f
4 changed files with 7 additions and 13 deletions

View file

@ -58,10 +58,7 @@ from urllib import urlencode, quote_plus, unquote
from PlexFunctions import PlexToKodiTimefactor, PMSHttpsEnabled
try:
import xml.etree.cElementTree as etree
except ImportError:
import xml.etree.ElementTree as etree
import xml.etree.ElementTree as etree
@utils.logging

View file

@ -4,6 +4,7 @@
# import json
import requests
import xml.etree.ElementTree as etree
# import logging
# import xbmc
@ -13,10 +14,6 @@ import utils
import clientinfo
import PlexAPI
try:
import xml.etree.cElementTree as etree
except ImportError:
import xml.etree.ElementTree as etree
###############################################################################

View file

@ -4,10 +4,7 @@
from threading import Thread, Lock
import Queue
try:
import xml.etree.cElementTree as etree
except ImportError:
import xml.etree.ElementTree as etree
import xml.etree.ElementTree as etree
import xbmc
import xbmcgui

View file

@ -79,7 +79,10 @@ class Service():
"emby_initialScan", "emby_customplaylist", "emby_playbackProps",
"plex_runLibScan", "plex_username", "pms_token", "plex_token",
"pms_server", "plex_machineIdentifier", "plex_servername",
"plex_authenticated"
"plex_authenticated", "EmbyUserImage", "useDirectPaths",
"replaceSMB", "remapSMB", "remapSMBmovieOrg", "remapSMBtvOrg",
"remapSMBmusicOrg", "remapSMBmovieNew", "remapSMBtvNew",
"remapSMBmusicNew", "suspend_LibraryThread"
]
for prop in properties:
window(prop, clear=True)