feat: continue downloads

- refer #13
- the script has to be run in the directory which contains the
  incomplete download.
This commit is contained in:
Harshith 2021-06-18 15:51:56 +05:30
parent 79fd433746
commit 986d5613d5

View File

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