mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-19 01:55:31 +01:00
Updated newzbin url in searcher.py from newzbin.com to newzbin2.es
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user