mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
dah dulu
This commit is contained in:
parent
14530b58b0
commit
bb1300d8cb
4 changed files with 7 additions and 8 deletions
|
|
@ -2,7 +2,7 @@ from datetime import datetime, timedelta
|
|||
from re import findall
|
||||
from re import sub as re_sub
|
||||
from string import ascii_lowercase
|
||||
|
||||
from misskaty import app
|
||||
from pyrogram import enums
|
||||
|
||||
|
||||
|
|
@ -47,7 +47,6 @@ async def extract_userid(message, text: str):
|
|||
return int(text)
|
||||
|
||||
entities = message.entities
|
||||
app = message._client
|
||||
if len(entities) < 2:
|
||||
return (await app.get_users(text)).id
|
||||
entity = entities[1]
|
||||
|
|
|
|||
|
|
@ -140,9 +140,8 @@ async def kusonimeBypass(url: str, slug=None):
|
|||
err = traceback.format_exc()
|
||||
LOGGER.error(err)
|
||||
result |= {"error": True, "error_message": err}
|
||||
finally:
|
||||
await http.delete(_url)
|
||||
return result
|
||||
await http.delete(_url)
|
||||
return result
|
||||
|
||||
|
||||
async def byPassPh(url: str, name: str):
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ async def inline_menu(_, inline_query: InlineQuery):
|
|||
reply_markup=buttons,
|
||||
)
|
||||
)
|
||||
is_img = False
|
||||
for types in parsetypes:
|
||||
if kueri.lower() in types.lower():
|
||||
link = parsetypes[types]["href"]
|
||||
|
|
@ -195,7 +196,7 @@ async def inline_menu(_, inline_query: InlineQuery):
|
|||
body_text = f"""
|
||||
<pre>{msg}</pre>
|
||||
"""
|
||||
msg = await post_to_telegraph(False, method, body_text)
|
||||
msg = await post_to_telegraph(is_img, method, body_text)
|
||||
datajson.append(
|
||||
InlineQueryResultArticle(
|
||||
title=types,
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ async def stream_extract(self: Client, update: CallbackQuery, strings):
|
|||
usr = update.message.reply_to_message
|
||||
if update.from_user.id != usr.from_user.id:
|
||||
return await update.answer(strings("unauth_cb"), True)
|
||||
_, lang, map, codec = cb_data.split("#")
|
||||
_, lang, map_code, codec = cb_data.split("#")
|
||||
try:
|
||||
link = update.message.reply_to_message.command[1]
|
||||
except:
|
||||
|
|
@ -174,7 +174,7 @@ async def stream_extract(self: Client, update: CallbackQuery, strings):
|
|||
namafile = get_subname(lang, link, ext)
|
||||
try:
|
||||
LOGGER.info(f"ExtractSub: {namafile} by {update.from_user.first_name} [{update.from_user.id}]")
|
||||
(await shell_exec(f"ffmpeg -i {link} -map {map} '{namafile}'"))[0]
|
||||
(await shell_exec(f"ffmpeg -i {link} -map {map_code} '{namafile}'"))[0]
|
||||
timelog = time() - start_time
|
||||
c_time = time()
|
||||
await update.message.reply_document(
|
||||
|
|
|
|||
Loading…
Reference in a new issue