auto date range type for TV presets
This commit is contained in:
parent
6881b7ecf5
commit
426272d704
3 changed files with 26 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ presets:
|
||||||
chapters:
|
chapters:
|
||||||
embed_chapters: True
|
embed_chapters: True
|
||||||
|
|
||||||
|
date_range:
|
||||||
|
type: "{tv_show_date_range_type}"
|
||||||
|
|
||||||
overrides:
|
overrides:
|
||||||
# MUST DEFINE:
|
# MUST DEFINE:
|
||||||
# tv_show_directory
|
# tv_show_directory
|
||||||
|
|
@ -45,3 +48,7 @@ presets:
|
||||||
episode_file_path: "{season_directory_name_sanitized}/{episode_file_name_sanitized}"
|
episode_file_path: "{season_directory_name_sanitized}/{episode_file_name_sanitized}"
|
||||||
thumbnail_file_name: "{episode_file_path}-thumb.jpg"
|
thumbnail_file_name: "{episode_file_path}-thumb.jpg"
|
||||||
episode_year: "{%slice(episode_date_standardized, 0, 4)}"
|
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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
##################################### season/episode pairing validation
|
||||||
|
|
||||||
"%ordering_pair_eq": >-
|
"%ordering_pair_eq": >-
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,16 @@ presets:
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tv_show_date_range_type: >-
|
||||||
|
{
|
||||||
|
%if(
|
||||||
|
%contains(tv_show_collection_episode_ordering, "release"),
|
||||||
|
"release_date",
|
||||||
|
"upload_date"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
### LEGACY PRESETS
|
### LEGACY PRESETS
|
||||||
|
|
||||||
season_by_collection__episode_by_year_month_day:
|
season_by_collection__episode_by_year_month_day:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue