Add ytdl_extra_args.
This commit is contained in:
parent
fc25d0a1f6
commit
9c083ec36e
|
@ -33,9 +33,10 @@ ytdl_format="bestvideo[height<=1080]+bestaudio/best[height<=1080]"
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|===============================================================================
|
|===============================================================================
|
||||||
| *download_dir* | The directory to which the videos will be downloaded.
|
| *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.
|
| *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_format* | Same syntax as link:{url-ytdl-format}[youtube-dl --format]. Default is "best".
|
||||||
|
| *ytdl_extra_args* | Extra arguments for `youtube-dl`. Optional.
|
||||||
|===============================================================================
|
|===============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ function main()
|
||||||
--dateafter "now-${keep_for_days}days" \
|
--dateafter "now-${keep_for_days}days" \
|
||||||
--output "${download_dir}/%(uploader)s/%(title)s.%(ext)s" \
|
--output "${download_dir}/%(uploader)s/%(title)s.%(ext)s" \
|
||||||
--format "${ytdl_format}" \
|
--format "${ytdl_format}" \
|
||||||
|
"${ytdl_extra_args}" \
|
||||||
"${feed}"
|
"${feed}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue