Updated newzbin url in searcher.py from newzbin.com to newzbin2.es

This commit is contained in:
Remy Varma
2012-02-22 20:19:09 +00:00
parent 047c5043e2
commit 54ecf76a4b

View File

@@ -300,7 +300,7 @@ def searchNZB(albumid=None, new=False):
if headphones.NEWZBIN:
provider = "newzbin"
providerurl = "https://www.newzbin.com/"
providerurl = "https://www.newzbin2.es/"
if headphones.PREFERRED_QUALITY == 3:
categories = "7" #music
format = "2" #flac
@@ -506,7 +506,7 @@ def getresultNZB(result):
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/"
url = "https://www.newzbin2.es" + "/api/dnzb/"
urllib._urlopener = NewzbinDownloader()
try:
nzb = urllib.urlopen(url, data=params).read()