From 9c083ec36ed2c7fe00f28fef4258995331a7d509 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 16 Dec 2020 17:22:33 +0100 Subject: [PATCH] Add ytdl_extra_args. --- README.adoc | 7 ++++--- download-yt-feeds | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) mode change 100755 => 100644 download-yt-feeds diff --git a/README.adoc b/README.adoc index 3e16528..d12a0d1 100644 --- a/README.adoc +++ b/README.adoc @@ -33,9 +33,10 @@ ytdl_format="bestvideo[height<=1080]+bestaudio/best[height<=1080]" -------------------------------------------------------------------------------- |=============================================================================== -| *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". +| *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". +| *ytdl_extra_args* | Extra arguments for `youtube-dl`. Optional. |=============================================================================== diff --git a/download-yt-feeds b/download-yt-feeds old mode 100755 new mode 100644 index 103756f..a1933cc --- a/download-yt-feeds +++ b/download-yt-feeds @@ -61,6 +61,7 @@ function main() --dateafter "now-${keep_for_days}days" \ --output "${download_dir}/%(uploader)s/%(title)s.%(ext)s" \ --format "${ytdl_format}" \ + "${ytdl_extra_args}" \ "${feed}" done