flexget.plugins.input.apple_trailers module#

class flexget.plugins.input.apple_trailers.AppleTrailers[source]#

Bases: object

Add support for Apple.com movie trailers.

Configuration:

quality

Set the desired resolution - 480p, 720p or 1080p. default ‘720p’

genres

List of genres used to filter the entries. If set, the trailer must match at least one listed genre to be accepted. Genres that can be used: Action and Adventure, Comedy, Documentary, Drama, Family, Fantasy, Foreign, Horror, Musical, Romance, Science Fiction, Thriller. default ‘’ (all)

Example:

apple_trailers:
  quality: 720p
  genres: ['Action and Adventure']

Alternatively, a simpler configuration format can be used. This uses the default genre filter, all:

apple_trailers: 720p

This plugin adds the following fields to the entry: movie_name, movie_year, genres, apple_trailers_name, movie_studio

movie_name

Name of the movie

movie_year

Year the movie was/will be released

genres

Comma-separated list of genres that apply to the movie

apple_trailers_name

Contains the Apple-supplied name of the clip, such as ‘Clip 2’, ‘Trailer’, ‘Winter Olympic Preview’

movie_studio

Name of the studio that makes the movie

broken(error_message)[source]#
on_task_input(**kwargs)#
movie_data_url = 'http://trailers.apple.com/trailers/feeds/data/'#
qualities = {'1080p': 'hd1080', '480p': 'sd', '720p': 'hd720'}#
rss_url = 'http://trailers.apple.com/trailers/home/rss/newtrailers.rss'#
schema = {'oneOf': [{'additionalProperties': False, 'properties': {'genres': {'items': {'type': 'string'}, 'type': 'array'}, 'quality': {'default': '720p', 'enum': ['480p', '720p', '1080p'], 'type': 'string'}}, 'type': 'object'}, {'enum': ['480p', '720p', '1080p'], 'title': 'justquality', 'type': 'string'}]}#
class flexget.plugins.input.apple_trailers.AppleTrailersHeader[source]#

Bases: AuthBase

flexget.plugins.input.apple_trailers.register_plugin()[source]#