flexget.components.trakt.trakt_lookup module#
- class flexget.components.trakt.trakt_lookup.PluginTraktLookup[source]#
Bases:
objectRetrieve trakt information for entries.
Use series_name, eries_season, series_episode from series plugin.
Example: trakt_lookup: yes
Primarily used for passing trakt information to other plugins. Among these is the IMDB url for the series.
This information is provided (via entry): series info: trakt_series_name trakt_series_runtime trakt_series_first_aired_epoch trakt_series_first_aired_iso trakt_series_air_time trakt_series_content_ratingi trakt_series_genres trakt_series_imdb_url trakt_series_trakt_url imdb_id tvdb_id trakt_series_actors trakt_series_country trakt_series_year trakt_series_tvrage_id trakt_series_status trakt_series_overview
trakt_ep_name trakt_ep_season trakt_ep_number trakt_ep_overview trakt_ep_first_aired_epoch trakt_ep_first_aired_iso trakt_ep_id trakt_ep_tvdb_id
- property movie_identifier#
Return the plugin main identifier type.
- schema = {'oneOf': [{'additionalProperties': False, 'anyOf': [{'required': ['username']}, {'required': ['account']}], 'error_anyOf': 'At least one of `username` or `account` options are needed.', 'properties': {'account': {'type': 'string'}, 'username': {'type': 'string'}}, 'type': 'object'}, {'type': 'boolean'}]}#
- property series_identifier#
Return the plugin main identifier type.
- flexget.components.trakt.trakt_lookup.add_lazy_fields(entry, lazy_lookup_name, media_type)[source]#
Add lazy fields for one of the lookups in our lazy_lookup_types dict.
- flexget.components.trakt.trakt_lookup.add_lazy_user_fields(entry, data_type, media_type, username, account)[source]#
Add one of the user field lazy lookups to an entry.
- Parameters:
entry (Entry) – Entry to add lazy fields to
data_type (str) – ratings/collected/watched (one of the keys in user_data_fields dict.)
media_type (str) – show/season/episode/movie
username (str) – Either this or account is required, the other can be None
account (str) – Either this or username is required, the other can be None
- Return type:
None
- flexget.components.trakt.trakt_lookup.get_db_data_for(data_type, entry, session)[source]#
- Parameters:
data_type (str)
entry (Entry)
session (ContextSession)