ytdl-sub/src/ytdl_sub/subscriptions
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
base_subscription.py [FEATURE] Process all subscriptions even if one or more error (#771) 2023-10-21 12:25:38 -07:00
subscription.py [BUGFIX] Have __preset__ override nested preset keys (#784) 2023-10-25 11:35:52 -07:00
subscription_download.py [FEATURE] Add output_options.keep_max_files to limit number of downloads per subscription (#820) 2023-11-17 09:01:21 -08:00
subscription_validators.py [DOCS] New README with only subscriptions (#791) 2023-11-02 23:28:55 -07:00
subscription_ytdl_options.py [BUGFIX] Fix match-filter edge case and date_range.before (#750) 2023-10-03 11:46:42 -07:00
utils.py [DOCS] New README with only subscriptions (#791) 2023-11-02 23:28:55 -07:00