Add yt-dlp-functions
This commit is contained in:
parent
59fb8e4c88
commit
ac7878b1da
1 changed files with 45 additions and 0 deletions
45
yt-dlp-functions.sh
Normal file
45
yt-dlp-functions.sh
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
ytdns() { # yt download no-subs
|
||||||
|
yt-dlp \
|
||||||
|
--merge-output-format mkv --embed-chapters \
|
||||||
|
--format="((248/bestvideo[height<=1080])+(251/bestaudio))/best" \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
ytd() { # yt download
|
||||||
|
ytdns --all-subs --embed-subs "$@"
|
||||||
|
}
|
||||||
|
ytdbns() { # yt download best no-subs
|
||||||
|
yt-dlp \
|
||||||
|
--merge-output-format mkv --embed-chapters \
|
||||||
|
--format="(bestvideo+bestaudio)/best" \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
ytdb() { # yt download best
|
||||||
|
ytdbns --all-subs --embed-subs "$@"
|
||||||
|
}
|
||||||
|
ytda() { # yt download audio
|
||||||
|
yt-dlp --extract-audio --format="bestaudio" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
ytdfpl() { # yt download fixed playlist
|
||||||
|
# Same order as on site, we use this for playlists that will not grow any more ("fixed")
|
||||||
|
ytd \
|
||||||
|
--download-archive downloaded.list \
|
||||||
|
-o "%(playlist_index)04d-%(title)s-%(id)s.%(ext)s" \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
ytdpl() { # yt download playlist
|
||||||
|
# --playlist-reverse: Reversed order, we use this for playlists that will grow
|
||||||
|
ytdfpl --playlist-reverse "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
ytdafpl() { # yt download audio fixed playlist
|
||||||
|
# Same order as on site, we use this for playlists that will not grow any more ("fixed")
|
||||||
|
ytda \
|
||||||
|
--download-archive downloaded.list \
|
||||||
|
-o "%(playlist_index)04d-%(title)s-%(id)s.%(ext)s" \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
ytdapl() { # yt download audio playlist
|
||||||
|
# --playlist-reverse: Reversed order, we use this for playlists that will grow
|
||||||
|
ytdafpl --playlist-reverse "$@"
|
||||||
|
}
|
Loading…
Reference in a new issue