From 1fb81f0ba5671c52808d44af6b45d24d8279bcdb Mon Sep 17 00:00:00 2001 From: JimboKearn Date: Thu, 7 Oct 2021 18:02:10 +0530 Subject: [PATCH] fix: download feature --- ani-cli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index 032fe2a..32dc421 100755 --- a/ani-cli +++ b/ani-cli @@ -216,7 +216,8 @@ open_episode () { # add 0 padding to the episode name episode=$(printf "%03d" $episode) { - curl -L -# -C - "$video_url" -o "${anime_id}-${episode}.mp4" && + ffmpeg -headers "Referer: $dpage_url" -i "$video_url" \ + -codec copy "${anime_id}-${episode}.mkv" >/dev/null 2>&1 && printf "${c_green}Downloaded episode: %s${c_reset}\n" "$episode" || printf "${c_red}Download failed episode: %s${c_reset}\n" "$episode" }