mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 16:34:01 +01:00
Fixed UnboundLocalError/nzb referenced before assignment
This commit is contained in:
@@ -453,6 +453,9 @@ def verifyresult(title, term):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def getresultNZB(result):
|
def getresultNZB(result):
|
||||||
|
|
||||||
|
nzb = None
|
||||||
|
|
||||||
if result[3] == 'newzbin':
|
if result[3] == 'newzbin':
|
||||||
params = urllib.urlencode({"username": headphones.NEWZBIN_UID, "password": headphones.NEWZBIN_PASSWORD, "reportid": result[2]})
|
params = urllib.urlencode({"username": headphones.NEWZBIN_UID, "password": headphones.NEWZBIN_PASSWORD, "reportid": result[2]})
|
||||||
url = "https://www.newzbin.com" + "/api/dnzb/"
|
url = "https://www.newzbin.com" + "/api/dnzb/"
|
||||||
|
|||||||
Reference in New Issue
Block a user