flexget.plugins.filter.rottentomatoes module#

class flexget.plugins.filter.rottentomatoes.FilterRottenTomatoes[source]#

Bases: object

Allow filtering based on Rotten Tomatoes score, votes and genres etc.

Configuration:

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

min_critics_score: <num>
min_audience_score: <num>
min_average_score: <num>
min_critics_rating: <rotten, fresh, or certified fresh>
min_audience_rating: <upright or spilled>
min_year: <num>
max_year: <num>

# reject if genre contains any of these
reject_genres:
    - genre1
    - genre2

# accept movies with any of these actors
accept_actors:
    - actor1
    - actor2

# reject movie if it has any of these actors
reject_actors:
    - actor3
    - actor4

# accept all movies by these directors
accept_directors:
    - director1

# reject movies by these directors
reject_directors:
    - director2

# reject movies with any of these ratings
reject_mpaa_ratings:
    - PG-13
    - R
    - X

# accept movies with only these ratings
accept_mpaa_ratings:
    - PG
    - G
on_task_filter(task, config)[source]#
audience_ratings = {'spilled': 0, 'upright': 1}#
critics_ratings = {'certified fresh': 2, 'fresh': 1, 'rotten': 0}#
schema = {'additionalProperties': False, 'properties': {'accept_actors': {'items': {'type': 'string'}, 'type': 'array'}, 'accept_directors': {'items': {'type': 'string'}, 'type': 'array'}, 'accept_mpaa_ratings': {'items': {'type': 'string'}, 'type': 'array'}, 'max_year': {'type': 'integer'}, 'min_audience_rating': {'enum': ['spilled', 'upright']}, 'min_audience_score': {'type': 'number'}, 'min_average_score': {'type': 'number'}, 'min_critics_rating': {'enum': ['rotten', 'fresh', 'certified fresh']}, 'min_critics_score': {'type': 'number'}, 'min_year': {'type': 'integer'}, 'reject_actors': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_directors': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_genres': {'items': {'type': 'string'}, 'type': 'array'}, 'reject_mpaa_ratings': {'items': {'type': 'string'}, 'type': 'array'}}, 'type': 'object'}#
flexget.plugins.filter.rottentomatoes.register_plugin()[source]#