Skip to content

Commit

Permalink
Subtitle Extractor Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAVR authored Mar 7, 2021
1 parent e213150 commit 8cc029a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def extract_subtitle(client, message, data):
dwld_loc = data['location']
out_loc = data['location'] + ".srt"

out, err, rcode, pid = await execute(f"ffmpeg -i '{dwld_loc}' -map 0:{data['map']} -c copy '{out_loc}' -y")
out, err, rcode, pid = await execute(f"ffmpeg -i '{dwld_loc}' -map 0:{data['map']} '{out_loc}' -y")
if rcode != 0:
await message.edit_text("**Error Occured. See Logs for more info.**")
print(err)
Expand All @@ -47,4 +47,4 @@ async def extract_subtitle(client, message, data):

await clean_up(dwld_loc)
await upload_subtitle(client, message, out_loc)


0 comments on commit 8cc029a

Please sign in to comment.