refactor
This commit is contained in:
parent
828bb9cf84
commit
4488e05a86
12 changed files with 57 additions and 18 deletions
|
@ -1,10 +1,18 @@
|
|||
alias downloadVid="yt-dlp --downloader aria2c -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=1080]+bestaudio\" --write-thumbnail"
|
||||
alias downloadVid1440="yt-dlp --downloader aria2c -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=1440]+bestaudio\" --write-thumbnail"
|
||||
alias downloadVid4K="yt-dlp --downloader aria2c -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=2160]+bestaudio\" --write-thumbnail"
|
||||
alias downloadAudio="yt-dlp --downloader aria2c -o \"%(playlist_index)s %(title)s.%(ext)s\" -x"
|
||||
alias downloadMusic="yt-dlp --downloader aria2c -x --add-metadata -o \"%(playlist_title)s/%(playlist_index)s %(title)s.%(ext)s\""
|
||||
alias dlBeat="yt-dlp --downloader aria2c --no-playlist --audio-format m4a -x"
|
||||
alias downloadYT="yt-dlp --downloader aria2c --write-thumbnail -o \"%(title)s.%(ext)s\" --embed-thumbnail --embed-chapters --embed-info-json --convert-thumbnails jpg"
|
||||
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
|
||||
|
||||
alias yt-dlp="yt-dlp \
|
||||
--downloader aria2c \
|
||||
--cookies-from-browser brave \
|
||||
--user-agent \"$USER_AGENT\""
|
||||
|
||||
alias downloadAudio="yt-dlp -o \"%(playlist_index)s %(title)s.%(ext)s\" -x"
|
||||
alias downloadMusic="yt-dlp -x --add-metadata -o \"%(playlist_title)s/%(playlist_index)s %(title)s.%(ext)s\""
|
||||
alias dlBeat="yt-dlp --no-playlist --audio-format m4a -x"
|
||||
alias downloadYT="yt-dlp --write-thumbnail \
|
||||
-o \"%(title)s.%(ext)s\" --embed-thumbnail \
|
||||
--embed-chapters --embed-info-json \
|
||||
--convert-thumbnails jpg"
|
||||
|
||||
function downloadList() {
|
||||
cat $1 |xargs -I _ yt-dlp --downloader aria2c _
|
||||
}
|
||||
cat $1 |xargs -I _ yt-dlp --downloader aria2c _
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue