Add ytdl_extra_args.

This commit is contained in:
tastytea 2020-12-16 17:22:33 +01:00
parent fc25d0a1f6
commit 9c083ec36e
2 changed files with 5 additions and 3 deletions

View File

@ -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.
|===============================================================================

1
download-yt-feeds Executable file → Normal file
View File

@ -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