mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-20 19:59:26 +00:00
Fixed UnboundLocalError/nzb referenced before assignment
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user