This release adds 1 notable feature for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+7 more
Summary
AI summaryAdds a keep_max_files_sort_by config option to control pruning order by upload_date or playlist_index.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Feature | Medium |
Adds keep_max_files_sort_by config option to control pruning sort order Adds keep_max_files_sort_by config option to control pruning sort order Source: llm_adapter@2026-07-16 Confidence: high |
— |
| Feature | Medium |
Introduces fallback warning when sort_by is playlist_index but no indices exist Introduces fallback warning when sort_by is playlist_index but no indices exist Source: llm_adapter@2026-07-16 Confidence: high |
— |
| Feature | Medium |
Adds only_recent_sort_by preset support in download_deletion_options helper Adds only_recent_sort_by preset support in download_deletion_options helper Source: llm_adapter@2026-07-16 Confidence: high |
— |
| Feature | Medium |
Persists playlist_index on DownloadMapping for prune-time ordering Persists playlist_index on DownloadMapping for prune-time ordering Source: llm_adapter@2026-07-16 Confidence: low |
— |
| Feature | Low |
Persists `playlist_index` on `DownloadMapping` entries in archive JSON Persists `playlist_index` on `DownloadMapping` entries in archive JSON Source: granite4.1:30b@2026-07-16-audit Confidence: low |
— |
Full changelog
Add keep_max_files_sort_by option for playlist-index-based retention (#1484)
Adds a keep_max_files_sort_by config option that controls how entries are ordered when pruning with keep_max_files.
Previously, pruning always sorted by upload_date (keeping the most recent). This adds support for sorting by playlist_index (keeping the lowest indices), which is useful for playlists where position matters more than upload date e.g. keeping the first N episodes of a series.
Changes
keep_max_files_sort_by- newoutput_optionsfield accepting"upload_date"(default, preserving existing behaviour) or"playlist_index"playlist_indexonDownloadMapping- persisted in the archive JSON so it's available at prune time; old archives without the field gracefully default toNone- Fallback behaviour - if
sort_byis"playlist_index"but no entries have an index (e.g. old archives), logs a warning and falls back toupload_date(current behaviour) - Prebuilt preset support -
only_recent_sort_byoverride wired into thedownload_deletion_optionshelper
Closes #1461
Thanks @michaeldyrynda for the AAA PR! This is great stuff
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About ytdl-sub
Lightweight tool to automate downloading and metadata generation with yt-dlp
Related context
Related tools
Beta — feedback welcome: [email protected]