Quantcast
Channel: uncategorized - Forum - FlexGet
Viewing all articles
Browse latest Browse all 376

Advanced if statements?

$
0
0

@snickers2k wrote:

hey. there is a little lack of documentation for advanced if statements.

anyone know whats the best/offical way to combine if statements ?

  - "['imdb_genres' or 'tvdb_genres' or 'tmdb_genres'] == ['TV-Special' or 'Short' or 'Music'] and not 'Musical'":
      set:
        type: "Entertainment"
  - "['imdb_genres' or 'tmdb_genres' or 'trakt_series_genres' or 'tvdb_genres'] == 'Anime' and has_field('series_name')":
      set:
        type: "Anime-Series"
  - "['imdb_genres' or 'tmdb_genres' or 'trakt_series_genres' or 'tvdb_genres'] == 'Anime' and has_field('movie_name')":
      set:
        type: "Anime-Movies"
  - "tvdb_genres == 'Animation' and trakt_series_country == 'Japan'":
      set:
        type: "Anime-Series"
  - "'Talk Show' in (tvdb_genres or [])":
      set:
        type: "Latenight"
  - "'Game Show' in (tvdb_genres or [])":
      set:
        type: "Spielshow"
  - is_3d:
      set:
        type: "Movies-3D"
  - "'Documentary' in (imdb_genres or [])":
      set:
        type: "Dokus"
       # Probably a standup comedy.
  - "'Comedy' in (imdb_genres or []) and 1 == len(imdb_actors or [])":
      set:
        type: "Standup"
  - "'Documentary' in (imdb_genres or []) and has_field('movie_name')":
      set:
        type: "Doku-Movies"
  - "'Documentary' in (imdb_genres or []) and has_field('series_name')":
      set:
        type: "Dokus-Series"

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 376

Trending Articles