mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
feat: continue downloads
- refer #13 - the script has to be run in the directory which contains the incomplete download.
This commit is contained in:
parent
79fd433746
commit
986d5613d5
2
ani-cli
2
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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user