flexget.components.sites.sites.alpharatio module#
- class flexget.components.sites.sites.alpharatio.AlphaRatioCookie(**kwargs)[source]#
Bases:
VersionedBase- _cookie#
- _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:
objectAlphaRatio search plugin.
- get(url, params, username, password, force=False)[source]#
Allow refreshing the cookie if it is invalid for some reason.
- 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'}#