changeProvider - evilhero/mylar3 GitHub Wiki
action: will change any provided values for an existing provider (name or prov_id).
restrictions: Optional arguments do not need to part of the call but one must be provided.
arguments (required):
-
providertype-->newznabortorznab -
nameorprov_id(either/both may be supplied)
arguments (optional):
-
altername--> change the name of the provider from thenamevalue hostprov_apikey-
uid--> is only required for rss utilisation on some indexers. -
categories--> If requiring multiple categories can be separated by commas. -
enabled--> Enable provider. Acceptable values are:true,falseor just theenabledfield -
disabled--> Disable provider. Acceptable values are:true,falseor just thedisabledfield
note: if prov_id argument is used, name can be used in lieu of altername if desired.
response Type: json
example calls:
(using name control argument):
-
change newznab entries of: name of newznab, host, prov_apikey, and disable:
cmd=changeProvider&providertype=newznab&name=MySite&altername=MyCoolSite&host=https://testing.site.com&prov_apikey=something&disabled&apikey=<apikey> -
change torznab entries of: host, categories, and enable:
cmd=changeProvider&providertype=torznab&name=MySite&host=https://testing.site.com&categories=5000,7000&enabled=true&apikey=<apikey>
(using prov_id argument):
-
change newznab entries of: name of newznab, host, prov_apikey, and disable:
cmd=changeProvider&providertype=newznab&prov_id=5&name=MyCoolSite&host=https://testing.site.com&prov_apikey=something&disabled&apikey=<apikey> -
change torznab entries of: host, categories, and enable:
cmd=changeProvider&providertype=torznab&prov_id=5&host=https://testing.site.com&categories=5000,7000&enabled=true&apikey=<apikey>
example response:
{
"success": true,
"data": "Successfully changed ['name', 'host', 'prov_apikey', 'enabled'] for newznab provider MySite [prov_id: 5]"
}