remove not needed if in function camelot
This commit is contained in:
parent
91e02dfaae
commit
34d448ae1f
1 changed files with 29 additions and 31 deletions
60
default.py
60
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():
|
||||
|
|
Loading…
Add table
Reference in a new issue