ytdl-sub/src/ytdl_sub/validators
Jesse Bannon 544af2207b
[FEATURE] Add output_options.keep_max_files to limit number of downloads per subscription (#820)
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.
2023-11-17 09:01:21 -08:00
..
__init__.py setup cfg 2022-04-26 07:19:53 +00:00
audo_codec_validator.py [FEATURE] Support best codec type in audio_extract (#700) 2023-09-02 00:50:26 -07:00
file_path_validators.py [FEATURE] Configurable file_name_max_bytes (#562) 2023-03-25 20:17:38 -07:00
nfo_validators.py [BACKEND] output_directory_nfo_tags to support source vars (#239) 2022-09-17 11:11:37 -07:00
regex_validator.py [FEATURE] Chapters plugin with SponsorBlock support (#178) 2022-08-15 17:01:03 -07:00
source_variable_validator.py [FEATURE] Regex capture and filtering on source variables plugin (#100) 2022-07-16 23:39:46 -07:00
strict_dict_validator.py [FEATURE] Subtitles support via Subtitles plugin (#169) 2022-08-12 09:58:08 -07:00
string_datetime.py [DOCS] Lowest date_range granularity is day (#451) 2023-02-20 10:40:28 -08:00
string_formatter_validators.py [FEATURE] Add output_options.keep_max_files to limit number of downloads per subscription (#820) 2023-11-17 09:01:21 -08:00
string_select_validator.py setup cfg 2022-04-26 07:19:53 +00:00
validators.py [DEV] String validators to allow ints, floats, bools (#810) 2023-11-16 23:50:51 -08:00