presets:


  _plex_tv_show: # Default Highest Resolution, No AV1, which is not currently supported by plex
    preset:
      - "_plex_video_base"
      - "_episode_base"
      - "_episode_video_tags"
    overrides:
      tv_show_poster_file_name: "poster.jpg"
      tv_show_fanart_file_name: "fanart.jpg"
      season_poster_file_name: "{season_directory_name_sanitized}/Season{season_number_padded}.jpg"
    file_convert:
      convert_to: "mp4"  # webm doesn't play in many plex clients, so use mp4 instead

  _jellyfin_tv_show:
    preset:
      - "_base"
      - "_episode_base"
      - "_episode_video_tags"
      - "_episode_nfo_tags"
    overrides:
      tv_show_poster_file_name: "poster.jpg"
      tv_show_fanart_file_name: "fanart.jpg"
      season_poster_file_name: "season{season_number_padded}-poster.jpg"

  _kodi_tv_show:
    preset:
      - "_kodi_base"
      - "_jellyfin_tv_show"

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

  _episode_video_tags:
    video_tags:
      show: "{tv_show_name}"
      genre: "{tv_show_genre}"
      episode_id: "{episode_number}"
      title: "{episode_title}"
      synopsis: "{episode_plot}"
      year: "{episode_year}"
      date: "{episode_date_standardized}"
      contentRating: "{episode_content_rating}"

  _episode_nfo_tags:
    nfo_tags:
      nfo_name: "{episode_file_path}.nfo"
      nfo_root: "episodedetails"
      tags:
        genre:
         - "{tv_show_genre}"
        season: "{season_number}"
        episode: "{episode_number}"
        title: "{episode_title}"
        plot: "{episode_plot}"
        year: "{episode_year}"
        aired: "{episode_date_standardized}"
        mpaa: "{episode_content_rating}"

    output_directory_nfo_tags:
      nfo_name: "tvshow.nfo"
      nfo_root: "tvshow"
      tags:
        title: "{tv_show_name}"
        genre:
         - "{tv_show_genre}"
        mpaa: "{tv_show_content_rating}"