auto date range type for TV presets

This commit is contained in:
Jesse Bannon 2025-06-01 08:32:35 -07:00
parent 6881b7ecf5
commit 426272d704
3 changed files with 26 additions and 0 deletions

View file

@ -17,6 +17,9 @@ presets:
chapters:
embed_chapters: True
date_range:
type: "{tv_show_date_range_type}"
overrides:
# MUST DEFINE:
# tv_show_directory
@ -45,3 +48,7 @@ presets:
episode_file_path: "{season_directory_name_sanitized}/{episode_file_name_sanitized}"
thumbnail_file_name: "{episode_file_path}-thumb.jpg"
episode_year: "{%slice(episode_date_standardized, 0, 4)}"
# Used to determine which date type to use if `Only Recent` preset
# is applied
tv_show_date_range_type: "upload_date"

View file

@ -117,6 +117,15 @@ presets:
)
}
tv_show_date_range_type: >-
{
%if(
%contains(tv_show_by_date_season_ordering, "release"),
"release_date",
"upload_date"
)
}
##################################### season/episode pairing validation
"%ordering_pair_eq": >-

View file

@ -71,6 +71,16 @@ presets:
)
}
tv_show_date_range_type: >-
{
%if(
%contains(tv_show_collection_episode_ordering, "release"),
"release_date",
"upload_date"
)
}
### LEGACY PRESETS
season_by_collection__episode_by_year_month_day: