diff --git a/misskaty/plugins/genss.py b/misskaty/plugins/genss.py index f5b7155a..12e82b70 100644 --- a/misskaty/plugins/genss.py +++ b/misskaty/plugins/genss.py @@ -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, "Processing, please wait..", 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/", diff --git a/misskaty/plugins/imdb_search.py b/misskaty/plugins/imdb_search.py index 01d3b266..ccb80b83 100644 --- a/misskaty/plugins/imdb_search.py +++ b/misskaty/plugins/imdb_search.py @@ -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"📹 Judul: {r_json.get('name')} [{tahun}] ({typee})\n" if aka := r_json.get("alternateName"): res_str += f"📢 AKA: {aka}\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"📹 Judul: {r_json.get('name')} [{tahun}] ({typee})\n" if aka := r_json.get("alternateName"): res_str += f"📢 AKA: {aka}\n\n" diff --git a/misskaty/plugins/inline_search.py b/misskaty/plugins/inline_search.py index 72865c80..6eb4feea 100644 --- a/misskaty/plugins/inline_search.py +++ b/misskaty/plugins/inline_search.py @@ -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"📹 Judul: {r_json['name']} [{tahun}] ({typee})\n" if r_json.get("alternateName"): res_str += f"📢 AKA: {r_json.get('alternateName')}\n\n"