flexget.plugins.filter.thetvdb module#

class flexget.plugins.filter.thetvdb.FilterTvdb[source]#

Bases: object

Allow filtering based on thetvdb properties.

Allowed properties are series rating, episode rating, status, genres, runtime, content-rating, languages, directors, writers, network, guest stars, episode rating, and actors

Configuration:

Note: All parameters are optional. Some are mutually exclusive.

min_series_rating: <num>
min_episode_rating: <num>
min_episode_air_year: <num>
max_episode_air_year: <num>
min_episode_runtime: <num>
max_episode_runtime: <num>

# reject if genre contains any of these
reject_content_rating:
    - TV-MA
# accept only this content rating
accept_content_rating:
    - TV-PG

# accept only these networks
accept_network:
    - NBC
# reject if this network
reject_network:
    - ABC

# reject if genre contains any of these
reject_genres:
    - drama
    - romance

# reject if status contains any of these
reject_status:
    - Ended

# reject if language contain any of these
reject_languages:
    - fr
# accept only this language
accept_languages:
    - en

# Actors below take into account series actors, and guest stars
# accept episode with any of these actors
accept_actors:
    - Heidi Klum
    - Bruce Willis
# reject episode if it has any of these actors
reject_actors:
    - Cher
    - Tamala Jones

# accept all episodes by these writers
accept_writers:
    - Andrew W. Marlowe
# reject episodes by these writers
reject_writers:
    - Barry Schindel

# accept all episodes by these directors
accept_directors:
    - Rob Bowman
# reject movies by these directors
reject_directors:
    - John Terlesky
is_in_set(config, configkey, entryitem)[source]#

Return True if the object matches, (be that a subset of the list, or if the entry item is contained within the config object list) or false if it does not.

on_task_filter(task, config)[source]#
schema = {'additionalProperties': False, 'properties': {'accept_actors': {'items': {'type': 'string'}, 'type': 'array'}, 'accept_content_rating': {'items': {'type': 'string'}, 'type': 'array'}, 'accept_directors': {'items': {'type': 'string'}, 'type': 'array'}, 'accept_network': {'items': {'type': 'string'}, 'type': 'array'}, 'max_episode_air_year': {'type': 'integer'}, 'max_episode_runtime': {'type': 'number'}, 'min_episode_air_year': {'type': 'integer'}, 'min_episode_rating': {'type': 'number'}, 'min_episode_runtime': {'type': 'number'}, 'min_series_rating': {'type': 'number'}, 'reject_actors': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_content_rating': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_directors': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_genres': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_network': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_status': {'items': {'type': 'string'}, 'type': 'array'}}, 'type': 'object'}#
flexget.plugins.filter.thetvdb.register_plugin()[source]#