FIx sub format

This commit is contained in:
yasir 2022-12-08 11:14:46 +07:00
parent ce988c8d47
commit 04a3999512

View file

@ -1,7 +1,6 @@
"""
* @author yasir <yasiramunandar@gmail.com>
* @date 2022-12-01 09:12:27
* @lastModified 2022-12-01 09:32:31
* @projectName MissKatyPyro
* Copyright @YasirPedia All rights reserved
"""
@ -128,6 +127,7 @@ async def stream_extract(bot, update):
_, map, codec = cb_data.split("_")
link = update.message.reply_to_message.command[1]
await update.message.edit("Processing...")
try:
if codec == "aac":
format = "aac"
elif codec == "mp3":
@ -138,7 +138,6 @@ async def stream_extract(bot, update):
format = "srt"
else:
format == "ass"
try:
start_time = perf_counter()
namafile = get_subname(link, format)
extract = (await shell_exec(f"mediaextract -i {link} -map 0:{map} {namafile}"))[