From c384c9314760221750578d6f8ad4282bfd4f4915 Mon Sep 17 00:00:00 2001 From: Kyle Yasuda <33813108+ksyasuda@users.noreply.github.com> Date: Mon, 11 Jul 2022 16:52:30 -0700 Subject: [PATCH] switch to axel instead of aria2c (#12) --- README.md | 6 +++--- ani-cli | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a511514..7a96bf2 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ episode introduction by skipping to the next moment of silence in the video These are the minimum dependences required to run `aniwrapper` ``` -aria2 curl ffmpeg grep mpv rofi sed sqlite3 +axel curl ffmpeg grep mpv rofi sed sqlite3 ``` **Arch Linux** @@ -92,10 +92,10 @@ Install the Dependencies ```sh # Arch -pacman -S --needed aria2 curl ffmpeg grep mpv rofi sed sqlite3 +pacman -S --needed axel curl ffmpeg grep mpv rofi sed sqlite3 # Debian -apt install aria2 curl ffmpeg grep mpv rofi sed sqlite3 +apt install axel curl ffmpeg grep mpv rofi sed sqlite3 ``` Clone and switch into the repo directory diff --git a/ani-cli b/ani-cli index 201214c..212423d 100755 --- a/ani-cli +++ b/ani-cli @@ -118,7 +118,7 @@ download() { rm -f video.ts ;; *) - aria2c --check-certificate=false --summary-interval=0 -x 16 -s 16 --referer="$1" "$2" --dir="$5" -o "$4.mp4" --download-result=hide + axel -a -k -n 30 --header=Referer:"$1" "$2" -o "$5/$4.mp4" ;; esac } @@ -977,7 +977,7 @@ find_media() { } progress "Checking dependencies..." -dep_ch "$PLAYER_FN" "curl" "sed" "grep" "sqlite3" "rofi" "git" "aria2c" "openssl" "ffmpeg" +dep_ch "$PLAYER_FN" "curl" "sed" "grep" "sqlite3" "rofi" "git" "axel" "openssl" "ffmpeg" parse_args "$@" shift $((OPTIND - 1)) if ((IS_ROFI)); then