##################################
#             Genres             #
##################################
templates:
  Collection:
    optional:
      - poster
    url_poster: <<poster>>
    sync_mode: sync
    sort_title: "!015_<<collection_name>>"

collections:
  Action:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Action.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: action
  Adventure:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Adventure.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: adventure
  Animated Shorts:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Animated%20Shorts.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: animation
      content_rating: G, PG
      duration.lte: 20
  Animation:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Animation.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: animation
      content_rating: G, PG
  Biography:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Biography.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: biography
  Comedy Horror:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Comedy%20Horror.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      all:
        genre: 
          - comedy
          - horror
  Crime:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Crime.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: crime
  Documentary:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Documentary.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: documentary   
  Drama:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Drama.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: drama
  Family:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Family.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: family
  Fantasy:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Fantasy.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: fantasy
  Film Noir:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Film%20Noir.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: film-noir
  Foreign:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Foreign.jpg}
    smart_filter:
      any:
        audio_language:
         - ar  # Arabic
         - bs  # Bosnian
         - zh  # Chinese
         - cs  # Czech
         - da  # Danish
         - nl  # Dutch
         - fo  # Faroese
         - fil # Filipino
         - fi  # Finnish
         - fr  # French
         - de  # German
         - hu  # Hungarian
         - id  # Indonesian
         - it  # Italian
         - ja  # Japanese
         - kn  # Kannada
         - ms  # Malay  
         - ml  # Malayalam
         - no  # Norwegian
         - pl  # Polish
         - ro  # Romanian
         - ru  # Russian
         - sr  # Serbian
         - sv  # Swedish
         - ta  # Tamil
         - tr  # Turkish
         - uk  # Ukranian     
        all:
          country.not:
            - United States of America
            - United Kingdom
            - Canada       
      sort_by: audience_rating.desc
  History:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/History.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: history
  Horror:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Horror.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: horror
  Indie:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Indie.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: indie
  Martial Arts:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Martial%20Arts.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: martial arts
  Musical:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Musical.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: musical
  Mystery:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Mystery.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: mystery
  Romance:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Romance.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: romance            
  Romantic Comedy:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Romantic%20Comedy.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      all:
        genre: 
          - comedy
          - romance
  Science Fiction:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Science%20Fiction.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      any:
        genre: science fiction         
  Short:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Short.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: short 
  Sport:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Sport.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: sport 
  Suspense:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Suspense.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: suspense             
  Thriller:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Thriller.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: thriller 
  True Crime:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/True%20Crime.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      all:
        genre:
        - documentary
        - crime
  War:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/War.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: war      
  Western:
    template: {name: Collection, poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/genre/Western.jpg}
    smart_filter:
      sort_by: audience_rating.desc
      genre: western       