remove not needed if in function camelot

This commit is contained in:
bassdart 2025-02-23 14:30:02 +01:00
parent 91e02dfaae
commit 34d448ae1f

View file

@ -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():