diff --git a/default.py b/default.py index 7524658..c0f7ee6 100644 --- a/default.py +++ b/default.py @@ -493,37 +493,35 @@ def numbers(): def camelot(): - #fanart = "resources/img/camelot/camleot.png" - if sort == "random" or sort == "date": - num1 = 0 - for num in range(1, 13): - # logic to get get all the different translation strings from camelot wheel - minor = 30149 + num + num1 - major = 30149 + num + num1 + 1 - log( - msg="camelotnumber=%s, minor=%s, major=%s" % (num, minor, major), - level=xbmc.LOGINFO, - ) - fanart = os.path.join( - addonDir, "resources/img/camelot/" + str(num) + "A.png" - ) - addDir( - translation(minor), - "&limit=camelot&sort=" + sort + "&start=" + str(num) + "A", - "sortTitlesBy", - fanart, - ) - fanart = os.path.join( - addonDir, "resources/img/camelot/" + str(num) + "B.png" - ) - addDir( - translation(major), - "&limit=camelot&sort=" + sort + "&start=" + str(num) + "B", - "sortTitlesBy", - fanart, - ) - num1 += 1 - endOfDirectory() + num1 = 0 + for num in range(1, 13): + # logic to get get all the different translation strings from camelot wheel + minor = 30149 + num + num1 + major = 30149 + num + num1 + 1 + log( + msg="camelotnumber=%s, minor=%s, major=%s" % (num, minor, major), + level=xbmc.LOGINFO, + ) + fanart = os.path.join( + addonDir, "resources/img/camelot/" + str(num) + "A.png" + ) + addDir( + translation(minor), + "&limit=camelot&sort=" + sort + "&start=" + str(num) + "A", + "sortTitlesBy", + fanart, + ) + fanart = os.path.join( + addonDir, "resources/img/camelot/" + str(num) + "B.png" + ) + addDir( + translation(major), + "&limit=camelot&sort=" + sort + "&start=" + str(num) + "B", + "sortTitlesBy", + fanart, + ) + num1 += 1 + endOfDirectory() def opensettings():