Skip to content

Instantly share code, notes, and snippets.

@milnak
Created November 30, 2021 17:12
Show Gist options
  • Save milnak/0a30e5cd6887fc67f7d7d5a8e040b042 to your computer and use it in GitHub Desktop.
Save milnak/0a30e5cd6887fc67f7d7d5a8e040b042 to your computer and use it in GitHub Desktop.
Script (bash and cmd) to download a torrent using aria
goto(){
# Linux
# Save this script as "aria-torrent-dl.sh"
# sudo apt install aria2 --yes
aria2c --continue=true --max-concurrent-downloads=5 --max-connection-per-server=4 --min-split-size=10M --split=5 --disable-ipv6=true --seed-time=0 --summary-interval=0 --console-log-level=warn $1
}
goto $@
exit
:(){
@echo off
setlocal
REM Windows
# Save this script as "aria-torrent-dl.cmd"
REM https://github.com/aria2/aria2/releases/
rem --input-file="%USERPROFILE%\aria2.session" --save-session="%USERPROFILE%\aria2.session"
aria2c.exe --continue=true --max-concurrent-downloads=5 --max-connection-per-server=4 --min-split-size=10M --split=5 --disable-ipv6=true --seed-time=0 --summary-interval=0 --console-log-level=warn "%~1"
goto :EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment