Commit f2e3c513 authored by echel0n's avatar echel0n
Browse files

Fixed issue with API keys not being saved for Newznab search providers

parent aa66a759
...@@ -136,6 +136,7 @@ class SaveProvidersHandler(BaseHandler): ...@@ -136,6 +136,7 @@ class SaveProvidersHandler(BaseHandler):
elif provider_obj.provider_type in [SearchProviderType.NZB, SearchProviderType.NEWZNAB]: elif provider_obj.provider_type in [SearchProviderType.NZB, SearchProviderType.NEWZNAB]:
provider_obj.username = self.get_argument(providerID + '_username', '').strip() provider_obj.username = self.get_argument(providerID + '_username', '').strip()
provider_obj.api_key = self.get_argument(providerID + '_api_key', '').strip() provider_obj.api_key = self.get_argument(providerID + '_api_key', '').strip()
provider_obj.key = self.get_argument(providerID + '_key', '').strip()
custom_settings = { custom_settings = {
'minseed': int(self.get_argument(providerID + '_minseed', None) or 0), 'minseed': int(self.get_argument(providerID + '_minseed', None) or 0),
......
...@@ -1413,8 +1413,7 @@ class NewznabProvider(NZBProvider): ...@@ -1413,8 +1413,7 @@ class NewznabProvider(NZBProvider):
cls('NZB.Cat', 'https://nzb.cat', '', '5030,5040,5010', 'eponly', True, True, True, True), cls('NZB.Cat', 'https://nzb.cat', '', '5030,5040,5010', 'eponly', True, True, True, True),
cls('NZBGeek', 'https://api.nzbgeek.info', '', '5030,5040', 'eponly', False, False, False, True), cls('NZBGeek', 'https://api.nzbgeek.info', '', '5030,5040', 'eponly', False, False, False, True),
cls('NZBs.org', 'https://nzbs.org', '', '5030,5040', 'eponly', False, False, False, True), cls('NZBs.org', 'https://nzbs.org', '', '5030,5040', 'eponly', False, False, False, True),
cls('Usenet-Crawler', 'https://www.usenet-crawler.com', '', '5030,5040', 'eponly', False, False, False, cls('Usenet-Crawler', 'https://www.usenet-crawler.com', '', '5030,5040', 'eponly', False, False, False, True)
True)
] ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment