mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 10:44:50 +00:00
Fix
This commit is contained in:
parent
3defb7cd1d
commit
2d9a3482dd
3 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ async def genss(client, m):
|
|||
return await kirimPesan(m, "Reply to a Telegram Video or document as video to generate screenshoot!", quote=True)
|
||||
process = await kirimPesan(m, "<code>Processing, please wait..</code>", quote=True)
|
||||
if media.file_size > 2097152000:
|
||||
return await kirimPesan(m, "Sorry, download limited to 2GB to reduce flood. You can convert your files to link.")
|
||||
return await editPesan(process, "Sorry, download limited to 2GB to reduce flood. You can convert your files to link.")
|
||||
c_time = time.time()
|
||||
dl = await replied.download(
|
||||
file_name="/downloads/",
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ async def imdb_id_callback(_, query):
|
|||
ott = await search_jw(r_json.get("name"), "ID")
|
||||
typee = r_json.get("@type", "")
|
||||
res_str = ""
|
||||
tahun = re.findall(r"\d{4}\W\d{4}|\d{4}\W", sop.title.text)[0] if re.findall(r"\d{4}\W\d{4}|\d{4}\W", sop.title.text) else "N/A"
|
||||
tahun = re.findall(r"\d{4}\W\d{4}|\d{4}-?", sop.title.text)[0] if re.findall(r"\d{4}\W\d{4}|\d{4}-?", sop.title.text) else "N/A"
|
||||
res_str += f"<b>📹 Judul:</b> <a href='{url}'>{r_json.get('name')} [{tahun}]</a> (<code>{typee}</code>)\n"
|
||||
if aka := r_json.get("alternateName"):
|
||||
res_str += f"<b>📢 AKA:</b> <code>{aka}</code>\n\n"
|
||||
|
|
@ -415,7 +415,7 @@ async def imdb_en_callback(bot, query):
|
|||
ott = await search_jw(r_json.get("name"), "US")
|
||||
typee = r_json.get("@type", "")
|
||||
res_str = ""
|
||||
tahun = re.findall(r"\d{4}\W\d{4}|\d{4}\W", sop.title.text)[0] if re.findall(r"\d{4}\W\d{4}|\d{4}\W", sop.title.text) else "N/A"
|
||||
tahun = re.findall(r"\d{4}\W\d{4}|\d{4}-?W", sop.title.text)[0] if re.findall(r"\d{4}\W\d{4}|\d{4}-?", sop.title.text) else "N/A"
|
||||
res_str += f"<b>📹 Judul:</b> <a href='{url}'>{r_json.get('name')} [{tahun}]</a> (<code>{typee}</code>)\n"
|
||||
if aka := r_json.get("alternateName"):
|
||||
res_str += f"<b>📢 AKA:</b> <code>{aka}</code>\n\n"
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ async def imdb_inl(_, query):
|
|||
ott = await search_jw(r_json["name"], "en_ID")
|
||||
res_str = ""
|
||||
typee = r_json.get("@type", "")
|
||||
tahun = re.findall(r"\d{4}\W\d{4}|\d{4}\W", sop.title.text)[0] if re.findall(r"\d{4}\W\d{4}|\d{4}\W", sop.title.text) else "N/A"
|
||||
tahun = re.findall(r"\d{4}\W\d{4}|\d{4}-?", sop.title.text)[0] if re.findall(r"\d{4}\W\d{4}|\d{4}-?", sop.title.text) else "N/A"
|
||||
res_str += f"<b>📹 Judul:</b> <a href='{url}'>{r_json['name']} [{tahun}]</a> (<code>{typee}</code>)\n"
|
||||
if r_json.get("alternateName"):
|
||||
res_str += f"<b>📢 AKA:</b> <code>{r_json.get('alternateName')}</code>\n\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue