switch to axel instead of aria2c (#12)

This commit is contained in:
Kyle Yasuda 2022-07-11 16:52:30 -07:00 committed by GitHub
parent fa108d860f
commit c384c93147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

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

View File

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