Fixed UnboundLocalError/nzb referenced before assignment

This commit is contained in:
Remy
2011-08-10 16:20:51 -07:00
parent 45e38bc74f
commit 2183ce49b8

View File

@@ -453,6 +453,9 @@ def verifyresult(title, term):
return True
def getresultNZB(result):
nzb = None
if result[3] == 'newzbin':
params = urllib.urlencode({"username": headphones.NEWZBIN_UID, "password": headphones.NEWZBIN_PASSWORD, "reportid": result[2]})
url = "https://www.newzbin.com" + "/api/dnzb/"