flexget.plugins.services.myepisodes module#

class flexget.plugins.services.myepisodes.MyEpisodes[source]#

Bases: object

Marks a series episode as acquired in your myepisodes.com account.

Simple Example:

Most shows are recognized automatically from their TVDBname. And of course the plugin needs to know your MyEpisodes.com account details.

tasks:
tvshows:
myepisodes:

username: <username> password: <password>

series:
  • human target

  • chuck

Advanced Example:

In some cases, the TVDB name is either not unique or won’t even be discovered. In that case you need to specify the MyEpisodes id manually using the set plugin.

tasks:
  tvshows:
    myepisodes:
      username: <username>
      password: <password>
    series:
     - human target:
         set:
           myepisodes_id: 5111
     - chuck

How to find the MyEpisodes id: http://matrixagents.org/screencasts/myep_example-20110507-131555.png

_generate_search_value(entry)[source]#

Find the TVDB name for searching myepisodes with.

myepisodes.com is backed by tvrage, so this will not be perfect.

Return: myepisode id or None

_login(config)[source]#

Authenticate with the myepisodes service and return a requests session.

Return:

requests session

Raises:

PluginWarning if login fails PluginError if http communication fails

_lookup_myepisodes_id(entry)[source]#

Attempt to find the myepisodes id for the series.

Return: myepisode id or None

_mark_episode_acquired(entry)[source]#

Mark episode as acquired.

Required entry fields:
  • series_name

  • series_season

  • series_episode

Raises:

PluginWarning if operation fails

_retrieve_id_from_database(entry)[source]#

Attempt to find the myepisodes id in the database.

Return: myepisode id or None

_retrieve_id_from_website(entry)[source]#

Attempt to find the myepisodes id for the series for the website itself.

Return: myepisode id or None

_save_id(series_name, myepisodes_id)[source]#

Save the myepisodes id in the database.

This will help prevent unecceary communication with the website

_validate_entry(entry)[source]#

Check an entry for all of the fields needed to communicate with myepidoes.

Return: boolean

on_task_output(task, config)[source]#

Mark all accepted episodes as acquired on MyEpisodes.

schema = {'additionalProperties': False, 'properties': {'password': {'type': 'string'}, 'username': {'type': 'string'}}, 'required': ['username', 'password'], 'type': 'object'}#
class flexget.plugins.services.myepisodes.MyEpisodesInfo(series_name, myepisodes_id)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'myepisodes_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'series_name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'updated': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
myepisodes_id#
series_name#
updated#
flexget.plugins.services.myepisodes.register_plugin()[source]#