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" }