2022-10-07 16:25:57 +02:00
|
|
|
ytd() { # yt download
|
2022-10-05 18:32:52 +02:00
|
|
|
yt-dlp \
|
|
|
|
--merge-output-format mkv --embed-chapters \
|
2022-10-07 16:25:57 +02:00
|
|
|
--all-subs --embed-subs \
|
2022-10-05 18:32:52 +02:00
|
|
|
--format="((248/bestvideo[height<=1080])+(251/bestaudio))/best" \
|
|
|
|
"$@"
|
|
|
|
}
|
2022-10-07 16:25:57 +02:00
|
|
|
ytdb() { # yt download best
|
2022-10-05 18:32:52 +02:00
|
|
|
yt-dlp \
|
|
|
|
--merge-output-format mkv --embed-chapters \
|
2022-10-07 16:25:57 +02:00
|
|
|
--all-subs --embed-subs \
|
2022-10-05 18:32:52 +02:00
|
|
|
--format="(bestvideo+bestaudio)/best" \
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
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 "$@"
|
|
|
|
}
|