Browse files

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

…_binaries
  • Loading branch information...
2 parents 8f45c4b + 017724b commit 1919cd8434b3d190cb15dde13932e99bc9d0f089 @midgetspy committed May 10, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 sickbeard/providers/__init__.py
View
11 sickbeard/providers/__init__.py
@@ -63,19 +63,20 @@ 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)
else:
providerDict[curDefault.name].default = True
providerDict[curDefault.name].name = curDefault.name
providerDict[curDefault.name].url = curDefault.url
+ providerDict[curDefault.name].needs_auth = curDefault.needs_auth
- # 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
-
return filter(lambda x: x, providerList)

0 comments on commit 1919cd8

Please sign in to comment.