flexget.plugins.input.gazelle module#

class flexget.plugins.input.gazelle.GazelleSession(**kwargs)[source]#

Bases: VersionedBase

_cookies#
_sa_class_manager = {'_cookies': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'authkey': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'base_url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'cookies': <sqlalchemy.orm.attributes.create_proxied_attribute.<locals>.Proxy object>, 'expires': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'passkey': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'username': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
authkey#
base_url#
cookies#
expires#
passkey#
username#
class flexget.plugins.input.gazelle.InputGazelle[source]#

Bases: object

A generic plugin that searches a Gazelle-based website.

Limited functionality but should work for almost all of them.

_getval(key, val)[source]#

Get the value for the specified key based on a config option.

_key(key)[source]#

Get the API key name from the entered key.

_opts(key)[source]#

Get the options for the specified key.

authenticate(force=False)[source]#

Log in and store auth data from the server.

Adapted from isaaczafuta/whatapi

get_entries(search_results)[source]#

Yield Entry objects from search results.

on_task_input(**kwargs)#
params_from_config(config)[source]#

Filter params and map config values -> api values.

request(no_login=False, **params)[source]#

Make an AJAX request to the API.

If no_login is True, logging in will not be attempted if the request is redirected to the login page.

Adapted from isaaczafuta/whatapi

resume_session()[source]#

Resume an existing session from the database.

Return True on successful recovery, False otherwise

save_current_session()[source]#

Store the current session in the database so it can be resumed later.

search(**kwargs)#
search_results(params)[source]#

Yield search results.

setup(task, config)[source]#

Set up a session and log in.

property schema#

The schema of the plugin.

Subclasses should extend this to implement more params

class flexget.plugins.input.gazelle.InputGazelleMusic[source]#

Bases: InputGazelle

A plugin that searches a Gazelle-based music website.

Based on WhatCD/Gazelle since it’s the starting point of all Gazelle-based music sites.

get_entries(search_results)[source]#

Yield Entry objects from search results.

property schema#

The schema of the plugin.

Extends the super’s schema

class flexget.plugins.input.gazelle.InputNotWhat[source]#

Bases: InputGazelleMusic

A plugin that searches NWCD.

class flexget.plugins.input.gazelle.InputRedacted[source]#

Bases: InputGazelleMusic

A plugin that searches RED.

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