flexget.components.sites.sites.newznab module#

class flexget.components.sites.sites.newznab.Newznab[source]#

Bases: object

Newznab search plugin.

Provide a url or your website + apikey and a category. When a URL is provided it will override website and apikey; category will not be used in the URL but is still needed to properly fill out search parameters.

Config example:

newznab:

url: “http://website/api?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxx&t=movie&extended=1” website: https://website apikey: xxxxxxxxxxxxxxxxxxxxxxxxxx category: movie

Category is any of: movie, tvsearch, tv, music, book, all

static get_url_and_params(config)[source]#
do_search_all(arg_entry, task, url, params)[source]#
do_search_movie(arg_entry, task, url, params)[source]#
do_search_tvsearch(arg_entry, task, url, params)[source]#
fill_entries_for_url(url, params, task)[source]#
search(task, entry, config=None)[source]#
schema = {'additionalProperties': False, 'oneOf': [{'required': ['url']}, {'required': ['website']}], 'properties': {'apikey': {'type': 'string'}, 'category': {'enum': ['movie', 'tvsearch', 'tv', 'music', 'book', 'all'], 'type': 'string'}, 'url': {'format': 'url', 'type': 'string'}, 'website': {'format': 'url', 'type': 'string'}}, 'required': ['category'], 'type': 'object'}#
flexget.components.sites.sites.newznab.register_plugin()[source]#