mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
Fix if space in filename
This commit is contained in:
parent
3de2da85bf
commit
a3864d3c1b
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ async def convertsrt(c, m):
|
||||||
LOGGER.info(
|
LOGGER.info(
|
||||||
f"ConvertSub: {filename} by {m.from_user.first_name} [{m.from_user.id}]"
|
f"ConvertSub: {filename} by {m.from_user.first_name} [{m.from_user.id}]"
|
||||||
)
|
)
|
||||||
(await shell_exec(f"mediaextract -i '{dl}' {filename}.srt"))[0]
|
(await shell_exec(f"mediaextract -i '{dl}' '{filename}'.srt"))[0]
|
||||||
await m.reply_document(
|
await m.reply_document(
|
||||||
f"{filename}.srt", caption=f"{filename}.srt\n\nConverted by @{c.me.username}"
|
f"{filename}.srt", caption=f"{filename}.srt\n\nConverted by @{c.me.username}"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue