mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
Add subdl beta
This commit is contained in:
parent
24e67d7224
commit
d0d39633ae
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ async def getTitleSub(msg, kueri, CurrentPage, user):
|
||||||
subResult = f"<b>#Subscene Results For:</b> <code>{kueri}</code>\n\n"
|
subResult = f"<b>#Subscene Results For:</b> <code>{kueri}</code>\n\n"
|
||||||
for c, i in enumerate(SUB_TITLE_DICT[msg.id][0][index], start=1):
|
for c, i in enumerate(SUB_TITLE_DICT[msg.id][0][index], start=1):
|
||||||
subResult += f"<b>{c}. <a href='{i['link']}'>{i['title']}</a></b>\n"
|
subResult += f"<b>{c}. <a href='{i['link']}'>{i['title']}</a></b>\n"
|
||||||
extractbtn.append(InlineButton(c, f"sublist#{CurrentPage}#{c}#{user}#{msg.id}"))
|
extractbtn.append(InlineButton(c, f"sublist#{CurrentPage}#{c}#{msg.id}#{user}"))
|
||||||
subResult = "".join(i for i in subResult if i not in "[]")
|
subResult = "".join(i for i in subResult if i not in "[]")
|
||||||
return subResult, PageLen, extractbtn
|
return subResult, PageLen, extractbtn
|
||||||
except (IndexError, KeyError):
|
except (IndexError, KeyError):
|
||||||
|
|
@ -75,7 +75,7 @@ async def getListSub(msg, link, CurrentPage, user):
|
||||||
subResult = f"<b>#Subscene Results For:</b> <code>{link}</code>\n\n"
|
subResult = f"<b>#Subscene Results For:</b> <code>{link}</code>\n\n"
|
||||||
for c, i in enumerate(SUB_DL_DICT[msg.id][0][index], start=1):
|
for c, i in enumerate(SUB_DL_DICT[msg.id][0][index], start=1):
|
||||||
subResult += f"<b>{c}. {i['title']}</b> [{i['rate']}]\n\n"
|
subResult += f"<b>{c}. {i['title']}</b> [{i['rate']}]\n\n"
|
||||||
extractbtn.append(InlineButton(c, f"extractsubs#{CurrentPage}#{c}#{user}#{msg.id}"))
|
extractbtn.append(InlineButton(c, f"extractsubs#{CurrentPage}#{c}#{msg.id}#{user}"))
|
||||||
subResult = "".join(i for i in subResult if i not in "[]")
|
subResult = "".join(i for i in subResult if i not in "[]")
|
||||||
return subResult, PageLen, extractbtn
|
return subResult, PageLen, extractbtn
|
||||||
except (IndexError, KeyError):
|
except (IndexError, KeyError):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue