Private GIT

Skip to content
Snippets Groups Projects
Commit 1919cd84 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Merge branch 'master' of github.com:midgetspy/Sick-Beard into windows_binaries

parents 8f45c4bf 017724b3
Branches
Tags build-487
No related merge requests found
......@@ -63,6 +63,11 @@ def getNewznabProviderList(data):
if not curDefault:
continue
# a 0 in the key spot indicates that no key is needed, so set this on the object
if curDefault.key == '0':
curDefault.key = ''
curDefault.needs_auth = False
if curDefault.name not in providerDict:
curDefault.default = True
providerList.append(curDefault)
......@@ -70,11 +75,7 @@ def getNewznabProviderList(data):
providerDict[curDefault.name].default = True
providerDict[curDefault.name].name = curDefault.name
providerDict[curDefault.name].url = curDefault.url
# a 0 in the key spot indicates that no key is needed, so set this on the object
if curDefault.key == '0':
curDefault.key = ''
curDefault.needs_auth = False
providerDict[curDefault.name].needs_auth = curDefault.needs_auth
return filter(lambda x: x, providerList)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment