diff --git a/resources/lib/utils.py b/resources/lib/utils.py index cda4c5e2..34d22449 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -11,7 +11,10 @@ import StringIO import os import time import unicodedata -import xml.etree.ElementTree as etree +try: + import xml.etree.cElementTree as etree +except ImportError: + import xml.etree.ElementTree as etree from datetime import datetime import xbmc diff --git a/resources/lib/videonodes.py b/resources/lib/videonodes.py index bf1d20f4..a35695a3 100644 --- a/resources/lib/videonodes.py +++ b/resources/lib/videonodes.py @@ -3,7 +3,10 @@ ################################################################################################# import shutil -import xml.etree.ElementTree as etree +try: + import xml.etree.cElementTree as etree +except ImportError: + import xml.etree.ElementTree as etree import xbmc import xbmcaddon