Adds a new mechanism to limit subscriptions' number of videos to an explicit number (only supported date ranges prior to this). Example usage: ``` output_options: keep_max_files: 10 ``` will only keep 10 videos at max. In addition: - `keep_max_files` is bundled into the `Only Recent` preset and can be used via setting the `only_recent_max_files` override variable (see examples or README for usage). - Changed the `date_range` variable name to `only_recent_date_range` for more clarity. Usage of `date_range` will continue to work.
36 lines
No EOL
906 B
YAML
36 lines
No EOL
906 B
YAML
|
|
|
|
presets:
|
|
|
|
best_video_quality:
|
|
format: "bestvideo+bestaudio/best"
|
|
ytdl_options:
|
|
merge_output_format: "mp4"
|
|
|
|
max_1080p:
|
|
format: "(bv*[height<=1080]+bestaudio/best[height<=1080])"
|
|
ytdl_options:
|
|
merge_output_format: "mp4"
|
|
|
|
chunk_initial_download:
|
|
ytdl_options:
|
|
max_downloads: 20
|
|
playlistreverse: True
|
|
break_on_existing: False
|
|
break_on_reject: True
|
|
|
|
"Only Recent":
|
|
# Only fetch videos after today minus date_range
|
|
date_range:
|
|
after: "today-{only_recent_date_range}"
|
|
|
|
# Only keep files uploaded after date_range
|
|
output_options:
|
|
keep_files_after: "today-{only_recent_date_range}"
|
|
keep_max_files: "{only_recent_max_files}"
|
|
|
|
# Set the default date_range to 2 months
|
|
overrides:
|
|
date_range: "2months" # keep for legacy-reasons
|
|
only_recent_date_range: "{date_range}"
|
|
only_recent_max_files: 0 |