Skip to content

Commit

Permalink
debug 1
Browse files Browse the repository at this point in the history
  • Loading branch information
xAmarnath committed May 5, 2024
1 parent fdfe678 commit ad075e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/custdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,15 @@ async def download_x(e):

ffmpeg_command = generate_ffmpeg_command(f"{out_folder}/{out_filename}", subs_urls)
await ms.edit("Merging subs...")
print("FFMPEG CMD: "+" ".join(ffmpeg_command))
(await create_subprocess_shell(" ".join(ffmpeg_command))).wait()

# os.remove(f"{out_folder}/{out_filename}")
# await create_subprocess_shell(f"mv '{out_folder}/{out_filename.replace('.mkv', '_subs.mkv')}' downloads/").wait()

await ms.edit(f"Downloaded {out_filename} in {time.time() - t:.2f} seconds.", buttons=[[Button.inline("Back", data=f"episode_{series_id}_{season_index}_{episode_index}_{category}_{season_index}_{episode_index}")],
[Button.url("Index Link", f"{SERVIO_TEMP}")]])
await remove(f"{out_folder}/{out_filename}")
# await remove(f"{out_folder}/{out_filename}")

# move the file to downloads folder

Expand Down

0 comments on commit ad075e8

Please sign in to comment.