flexget.plugins.input.betaseries_list module#
Input plugin for www.betaseries.com.
- class flexget.plugins.input.betaseries_list.BetaSeriesList[source]#
Bases:
objectEmit an entry for each series followed by one or more BetaSeries account.
See https://www.betaseries.com/
Configuration examples:
# will get all series followed by the account identified by your_user_name betaseries_list: username: your_user_name password: your_password api_key: your_api_key
# will get all series followed by the account identified by some_other_guy betaseries_list: username: your_user_name password: your_password api_key: your_api_key members: - some_other_guy
# will get all series followed by the accounts identified by guy1 and guy2 betaseries_list: username: your_user_name password: your_password api_key: your_api_key members: - guy1 - guy2
Api key can be requested at https://www.betaseries.com/api.
This plugin is meant to work with the import_series plugin as follow:
import_series: from: betaseries_list: username: xxxxx password: xxxxx api_key: xxxxx
- on_task_input(**kwargs)#
- schema = {'additionalProperties': False, 'properties': {'api_key': {'type': 'string'}, 'members': {'items': {'title': 'member name', 'type': 'string'}, 'type': 'array'}, 'password': {'type': 'string'}, 'username': {'type': 'string'}}, 'required': ['username', 'password', 'api_key'], 'type': 'object'}#
- flexget.plugins.input.betaseries_list.create_token(api_key, login, password)[source]#
Login in and request an new API token.
https://www.betaseries.com/wiki/Documentation#cat-members
- Parameters:
api_key (string) – Api key requested at https://www.betaseries.com/api
login (string) – Login name
password (string) – Password
- Returns:
User token
- flexget.plugins.input.betaseries_list.query_member_id(api_key, user_token, login_name)[source]#
Get the member id of a member identified by its login name.
- Parameters:
api_key (string) – Api key requested at https://www.betaseries.com/api
user_token (string) – obtained with a call to create_token()
login_name (string) – The login name of the member
- Returns:
Id of the member identified by its login name or None if not found
- flexget.plugins.input.betaseries_list.query_series(api_key, user_token, member_name=None)[source]#
Get the list of series followed by the authenticated user.
- Parameters:
api_key (string) – Api key requested at https://www.betaseries.com/api
user_token (string) – Obtained with a call to create_token()
member_name (string) – [optional] A member name to get the list of series from. If None, will query the member for whom the user_token was for
- Returns:
List of series titles or empty list