mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
updated ani-cli'
This commit is contained in:
6
ani-cli
6
ani-cli
@@ -87,7 +87,7 @@ get_links () {
|
|||||||
embedded_video_url="$1"
|
embedded_video_url="$1"
|
||||||
if [ $is_alter -eq 0 ]; then
|
if [ $is_alter -eq 0 ]; then
|
||||||
curl -s "$embedded_video_url" |
|
curl -s "$embedded_video_url" |
|
||||||
sed -n -E 's/^[[:space:]]*href="([^"]*\>)".*/\1/p' | sed 1q
|
sed -n -E 's/^[[:space:]]*href="([^"]*\>)".*/\1/p' | grep -e 'gogo-cdn' | tail -1
|
||||||
else
|
else
|
||||||
curl -s "$embedded_video_url" |
|
curl -s "$embedded_video_url" |
|
||||||
sed -n -E '
|
sed -n -E '
|
||||||
@@ -216,7 +216,7 @@ open_episode () {
|
|||||||
# add 0 padding to the episode name
|
# add 0 padding to the episode name
|
||||||
episode=$(printf "%03d" $episode)
|
episode=$(printf "%03d" $episode)
|
||||||
{
|
{
|
||||||
wget --referer $embedded_video_url "$video_url" -O "${anime_id}-${episode}.mp4" &&
|
aria2c -x 16 -s 16 --referer $embedded_video_url "$video_url" -o "${anime_id}-${episode}.mp4" &&
|
||||||
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"
|
||||||
}
|
}
|
||||||
@@ -303,7 +303,7 @@ while :; do
|
|||||||
printf "$c_blue[${c_cyan}%s$c_blue] $c_magenta%s$c_reset\n" "p" "previous episode"
|
printf "$c_blue[${c_cyan}%s$c_blue] $c_magenta%s$c_reset\n" "p" "previous episode"
|
||||||
printf "$c_blue[${c_cyan}%s$c_blue] $c_yellow%s$c_reset\n" "s" "select episode"
|
printf "$c_blue[${c_cyan}%s$c_blue] $c_yellow%s$c_reset\n" "s" "select episode"
|
||||||
printf "$c_blue[${c_cyan}%s$c_blue] $c_magenta%s$c_reset\n" "r" "replay current episode"
|
printf "$c_blue[${c_cyan}%s$c_blue] $c_magenta%s$c_reset\n" "r" "replay current episode"
|
||||||
[ $is_alter -eq 0 ] && printf "$c_blue[${c_cyan}%s$c_blue] $c_magenta%s$c_reset\n" "R" "replay current episode(high quality, slow, use if normal is in low quality)"
|
[ $is_alter -eq 0 ] && printf "$c_blue[${c_cyan}%s$c_blue] $c_magenta%s$c_reset\n" "R" "replay current episode(slow, use if normal is not working)"
|
||||||
printf "$c_blue[${c_cyan}%s$c_blue] $c_red%s$c_reset\n" "q" "exit"
|
printf "$c_blue[${c_cyan}%s$c_blue] $c_red%s$c_reset\n" "q" "exit"
|
||||||
printf "${c_blue}Enter choice:${c_green} "
|
printf "${c_blue}Enter choice:${c_green} "
|
||||||
read choice
|
read choice
|
||||||
|
|||||||
Reference in New Issue
Block a user