From 986d5613d5aac6ecc8ab05e0efda0da2ddcb73ed Mon Sep 17 00:00:00 2001 From: Harshith Date: Fri, 18 Jun 2021 15:51:56 +0530 Subject: [PATCH] feat: continue downloads - refer #13 - the script has to be run in the directory which contains the incomplete download. --- ani-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index 237ee10..8d2c25a 100755 --- a/ani-cli +++ b/ani-cli @@ -211,7 +211,7 @@ open_episode () { # add 0 padding to the episode name episode=$(printf "%03d" $episode) { - curl -L -# "$video_url" -o "${anime_id}-${episode}.mp4" && + curl -L -# -C - "$video_url" -o "${anime_id}-${episode}.mp4" && printf "${c_green}Downloaded episode: %s${c_reset}\n" "$episode" || printf "${c_red}Download failed episode: %s${c_reset}\n" "$episode" }