Packages: Add aria2 download utility

To speed up YouTube downloads, use the external downloader aria2c.
Also implemented it in the aliases and scripts where youtube-dl is used.
This commit is contained in:
Riyyi
2021-08-09 12:50:10 +02:00
parent 4dc285d713
commit ae1458873e
5 changed files with 25 additions and 14 deletions
+3 -3
View File
@@ -173,9 +173,9 @@ alias u="setsid -f urxvt -cd $PWD"
alias weather="curl -s 'https://wttr.in/dordrecht?q&n&p' | head -n -3"
alias webmconvert="aliases webmconvert"
alias workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 setsid -f -- mysql-workbench > /dev/null 2>&1"
alias ytv="youtube-dl -f bestvideo\[height\<=\?1080\]+bestaudio/best"
alias ytvb="youtube-dl -f bestvideo+bestaudio/best"
alias yta="youtube-dl -f bestaudio/best -x --audio-format mp3 --audio-quality 0" # --embed-thumbnail"
alias ytv="youtube-dl -f bestvideo\[height\<=\?1080\]+bestaudio/best --external-downloader aria2c"
alias ytvb="youtube-dl -f bestvideo+bestaudio/best --external-downloader aria2c"
alias yta="youtube-dl -f bestaudio/best -x --audio-format mp3 --audio-quality 0 --external-downloader aria2c" # --embed-thumbnail"
alias ytat="aliases ytaudio_thumbnail"
mkcd() { mkdir -p -- "$1" && cd -P -- "$1" || exit; }