diff --git a/README.adoc b/README.adoc index 911974a..7ff9b99 100644 --- a/README.adoc +++ b/README.adoc @@ -42,7 +42,6 @@ files in this directory, `config` and `feedlist`. download_dir="/home/user/Podcasts/youtube" keep_for_days="14" ytdl_format="bestvideo[height<=1080]+bestaudio/best[height<=1080]" -max_videos="10" ytdl_extra_args="--quiet" -------------------------------------------------------------------------------- @@ -50,7 +49,6 @@ ytdl_extra_args="--quiet" | *download_dir* | The directory to which the videos will be downloaded. | *keep_for_days* | Download only videos newer than this many days and delete older videos. | *ytdl_format* | Same syntax as link:{url-ytdl-format}[youtube-dl --format]. Default is "best". -| *max_videos* | Maximum number of videos to consider per feed. Default is to consider all. | *ytdl_extra_args* | Extra arguments for `youtube-dl`. Optional. | *ytdl_binary* | Binary to use instead of `yt-dlp` or `youtube-dl`. |=============================================================================== diff --git a/download-yt-feeds b/download-yt-feeds index 52cf554..4f9e7c8 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -54,7 +54,6 @@ function main() [[ -z "${download_dir}" ]] && die 2 "download_dir not specified." [[ -z "${keep_for_days}" ]] && die 2 "keep_for_days not specified." [[ -z "${ytdl_format}" ]] && local ytdl_format="best" - [[ -z "${max_videos}" ]] && local max_videos="last" if [[ -z "${ytdl_binary}" ]]; then if command -v yt-dlp > /dev/null; then local ytdl_binary="yt-dlp" @@ -76,7 +75,6 @@ function main() --dateafter "now-${keep_for_days}days" \ --output "${download_dir}/%(uploader)s/%(title)s.%(ext)s" \ --format "${ytdl_format}" \ - --playlist-end "${max_videos}" \ ${=ytdl_extra_args} \ "${feed}" # [[ ${?} -eq 0 ]] || die 3 "${ytdl_binary} returned an error."