mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
fix: download feature
This commit is contained in:
parent
74adb643a4
commit
1fb81f0ba5
3
ani-cli
3
ani-cli
@ -216,7 +216,8 @@ open_episode () {
|
|||||||
# add 0 padding to the episode name
|
# add 0 padding to the episode name
|
||||||
episode=$(printf "%03d" $episode)
|
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_green}Downloaded episode: %s${c_reset}\n" "$episode" ||
|
||||||
printf "${c_red}Download failed 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