presets:

  kodi_tv_show_by_date:
    preset:
      - "_kodi_tv_show"
      - "_tv_show_by_date"

  jellyfin_tv_show_by_date:
    preset:
      - "_jellyfin_tv_show"
      - "_tv_show_by_date"

  plex_tv_show_by_date:
    preset:
      - "_plex_tv_show"
      - "_tv_show_by_date"

  # All-in-one presets that require no config
  "Kodi TV Show by Date":
    preset:
      - "kodi_tv_show_by_date"
      - "season_by_year__episode_by_month_day"

  "Jellyfin TV Show by Date":
    preset:
      - "jellyfin_tv_show_by_date"
      - "season_by_year__episode_by_month_day"

  "Plex TV Show by Date":
    preset:
      - "plex_tv_show_by_date"
      - "season_by_year__episode_by_month_day"

####################################################################################################

  # TV show from one or more sources. Uses {url}'s avatar and banner as poster and fanart
  _tv_show_by_date:
    preset: "_multi_url_bilateral"
    overrides:
      avatar_uncropped_thumbnail_file_name: "{tv_show_poster_file_name}"
      banner_uncropped_thumbnail_file_name: "{tv_show_fanart_file_name}"

####################################################################################################

  _season_by_year:
    overrides:
      season_number: "{upload_year}"
      season_number_padded: "{season_number}"

  _season_by_year_month:
    overrides:
      season_number: "{upload_year}{upload_month_padded}"
      season_number_padded: "{season_number}"

####################################################################################################

  season_by_year_month__episode_by_day:
    preset:
      - "_season_by_year_month"
    overrides:
      episode_number: "{upload_day}{upload_date_index_padded}"
      episode_number_padded: "{upload_day_padded}{upload_date_index_padded}"

  season_by_year__episode_by_month_day:
    preset:
      - "_season_by_year"
    overrides:
      episode_number: "{upload_month}{upload_day_padded}{upload_date_index_padded}"
      episode_number_padded: "{upload_month_padded}{upload_day_padded}{upload_date_index_padded}"

  season_by_year__episode_by_month_day_reversed:
    preset:
      - "_season_by_year"
    overrides:
      episode_number: "{upload_day_of_year_reversed}{upload_date_index_reversed_padded}"
      episode_number_padded: "{upload_day_of_year_reversed_padded}{upload_date_index_reversed_padded}"

  season_by_year__episode_by_download_index:
    preset:
      - "_season_by_year"
    overrides:
      episode_number: "{download_index}"
      episode_number_padded: "{download_index_padded6}"