apiVersion: v1
kind: ConfigMap
metadata:
  name: pmm-tv-config-jinja-template
  namespace: media
data:
  tv.yaml: |
    collections:
      Most Popular:
        smart_label: originally_available.desc
        sync_mode: sync
        imdb_list:
          url: https://www.imdb.com/search/title/?title_type=tv_series,tv_miniseries&release_date=1980-01-01,{{ now().strftime('%Y-%m-%d') }}
          limit: 10
        summary: The 10 most popular shows across the internet
        sonarr_add_missing: true
        sonarr_search: true
        sonarr_monitor: pilot
      Tautulli Most Popular:
        sync_mode: sync
        collection_order: custom
        summary: The 10 most popular shows from Plex users 
        tautulli_popular:
          list_days: 180
          list_size: 10
      IMDb Top 250:
          imdb_list: https://www.imdb.com/search/title/?groups=top_250
          sync_mode: sync
      Trakt Trending:
          trakt_trending: 30
          sync_mode: sync
      Trakt Watchlist:
          trakt_watchlist:
            - me
          sync_mode: sync
      Friends List:
          trakt_list:
            - https://trakt.tv/users/dcplaya/lists/friends-watchlist
            - https://trakt.tv/users/jreed-uc/lists/drew-crew
            - https://trakt.tv/users/carashultz/lists/friends-watchlist
            - https://trakt.tv/users/blairga/lists/plex-list
          sync_mode: sync
      Binge List:
          trakt_list:
            - https://trakt.tv/users/dcplaya/lists/binge-list
          sync_mode: sync
      Plex Popular:
        template: {name: Chart Alpha, num: 1}
        tautulli_popular:
          list_days: 30
          list_size: 20
          list_buffer: 20
        tautulli_watched:
          list_days: 30
          list_size: 20
          list_buffer: 20
        summary: Movies Popular on Plex
      Trending:
        template: {name: Chart Alpha, num: 2}
        trakt_trending: 40
        tmdb_trending_daily: 40
        tmdb_trending_weekly: 40
        summary: Movies Trending across the internet
      Popular:
        template: {name: Chart Alpha, num: 3}
        tmdb_popular: 40
        imdb_list:
          url: https://www.imdb.com/search/title/?title_type=feature,tv_movie,documentary,short
          limit: 40
        summary: Popular Movies across the internet
      Top Rated:
        template: {name: Chart Alpha, num: 4}
        imdb_list: https://www.imdb.com/search/title/?groups=top_250&count=250
        tmdb_top_rated: 250
        summary: Top Rated Movies across the internet