mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
switch to axel instead of aria2c (#12)
This commit is contained in:
parent
fa108d860f
commit
c384c93147
@ -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
|
||||
|
4
ani-cli
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user