Adds the ability to use override variables in the [ytdl_options](https://ytdl-sub.readthedocs.io/en/latest/config_reference/plugins.html#ytdl-options) section of the config.
48 lines
No EOL
1.4 KiB
YAML
48 lines
No EOL
1.4 KiB
YAML
presets:
|
|
|
|
#############################################################################
|
|
# Only Recent Archive
|
|
# Downloads only `date_range` amount of videos (no deletion)
|
|
|
|
"Only Recent Archive":
|
|
# Only fetch videos after today minus date_range
|
|
date_range:
|
|
after: "today-{only_recent_date_range}"
|
|
|
|
# Set the default date_range to 2 months
|
|
overrides:
|
|
date_range: "2months" # keep for legacy-reasons
|
|
only_recent_date_range: "{date_range}"
|
|
|
|
#############################################################################
|
|
# Only Recent
|
|
# Downloads only `date_range` amount of videos and deletes older videos
|
|
# that fall out of that range
|
|
|
|
"Only Recent":
|
|
preset:
|
|
- "Only Recent Archive"
|
|
|
|
output_options:
|
|
keep_files_after: "today-{only_recent_date_range}"
|
|
keep_max_files: "{only_recent_max_files}"
|
|
|
|
overrides:
|
|
only_recent_max_files: 0
|
|
|
|
#############################################################################
|
|
# Download in Chunks
|
|
# Will only download 20 videos per invocation of ytdl-sub, starting
|
|
# at the very beginning of the channel
|
|
|
|
chunk_initial_download: # legacy preset name
|
|
ytdl_options:
|
|
max_downloads: "{chunk_max_downloads}"
|
|
playlistreverse: True
|
|
break_on_existing: False
|
|
overrides:
|
|
chunk_max_downloads: 20
|
|
|
|
"Chunk Downloads":
|
|
preset:
|
|
- chunk_initial_download |