flexget.components.sites.sites.alpharatio module#

class flexget.components.sites.sites.alpharatio.AlphaRatioCookie(**kwargs)[source]#

Bases: VersionedBase

_sa_class_manager = {'_cookie': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'cookie': <sqlalchemy.orm.attributes.create_proxied_attribute.<locals>.Proxy object>, 'expires': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'username': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
cookie#
expires#
username#
class flexget.components.sites.sites.alpharatio.SearchAlphaRatio[source]#

Bases: object

AlphaRatio search plugin.

find_index(soup, text)[source]#

Find the index of the tag containing the text.

get(url, params, username, password, force=False)[source]#

Allow refreshing the cookie if it is invalid for some reason.

Parameters:
  • url (unicode)

  • params (dict)

  • username (str)

  • password (str)

  • force (bool) – flag used to refresh the cookie forcefully ie. forgo DB lookup

Returns:

Retrieve login cookie.

Parameters:
  • username (str)

  • password (str)

  • force (bool) – if True, then retrieve a fresh cookie instead of looking in the DB

Returns:

search(**kwargs)#
base_url = 'https://alpharatio.cc/'#
errors = False#
schema = {'additionalProperties': False, 'properties': {'category': {'oneOf': [{'items': {'enum': ['tvsd', 'tvhd', 'tvuhd', 'tvdvdrip', 'tvpacksd', 'tvpackhd', 'tvpackuhd', 'moviesd', 'moviehd', 'movieuhd', 'moviepacksd', 'moviepackhd', 'moviepackuhd', 'moviexxx', 'bluray', 'animesd', 'animehd', 'gamespc', 'gamesxbox', 'gamesps', 'gamesnin', 'appswindows', 'appsmac', 'appslinux', 'appsmobile', 'filter_cat[0]dayXXX', 'ebook', 'audiobook', 'music', 'misc'], 'title': 'single value', 'type': 'string'}, 'minItems': 1, 'title': 'multiple values', 'type': 'array', 'uniqueItems': True}, {'enum': ['tvsd', 'tvhd', 'tvuhd', 'tvdvdrip', 'tvpacksd', 'tvpackhd', 'tvpackuhd', 'moviesd', 'moviehd', 'movieuhd', 'moviepacksd', 'moviepackhd', 'moviepackuhd', 'moviexxx', 'bluray', 'animesd', 'animehd', 'gamespc', 'gamesxbox', 'gamesps', 'gamesnin', 'appswindows', 'appsmac', 'appslinux', 'appsmobile', 'filter_cat[0]dayXXX', 'ebook', 'audiobook', 'music', 'misc'], 'title': 'single value', 'type': 'string'}]}, 'leechstatus': {'default': 'normal', 'enum': ['normal', 'freeleech', 'neutral leech', 'either'], 'type': 'string'}, 'order_by': {'default': 'time', 'enum': ['seeders', 'leechers', 'time', 'size', 'year', 'snatched'], 'type': 'string'}, 'order_desc': {'default': True, 'type': 'boolean'}, 'password': {'type': 'string'}, 'scene': {'type': 'boolean'}, 'username': {'type': 'string'}}, 'required': ['username', 'password'], 'type': 'object'}#
flexget.components.sites.sites.alpharatio.register_plugin()[source]#
flexget.components.sites.sites.alpharatio.remove_special_characters(text)[source]#