Newzbin fix
This commit is contained in:
1 parent
cd1a1f5665
commit
ff91da16d9
1 file changed
+4
-4
@@ -14,8 +14,8 @@ log = CPLog(__name__)
|
|||||||
class Newzbin(NZBProvider, RSS):
|
class Newzbin(NZBProvider, RSS):
|
||||||
|
|
||||||
urls = {
|
urls = {
|
||||||
'download': 'http://www.newzbin.com/api/dnzb/',
|
'download': 'http://www.newzbin2.es/api/dnzb/',
|
||||||
'search': 'https://www.newzbin.com/search/',
|
'search': 'https://www.newzbin2.es/search/',
|
||||||
}
|
}
|
||||||
|
|
||||||
format_ids = {
|
format_ids = {
|
||||||
@@ -86,7 +86,7 @@ class Newzbin(NZBProvider, RSS):
|
|||||||
title = self.getTextElement(nzb, "title")
|
title = self.getTextElement(nzb, "title")
|
||||||
if 'error' in title.lower(): continue
|
if 'error' in title.lower(): continue
|
||||||
|
|
||||||
REPORT_NS = 'http://www.newzbin.com/DTD/2007/feeds/report/';
|
REPORT_NS = 'http://www.newzbin2.es/DTD/2007/feeds/report/';
|
||||||
|
|
||||||
# Add attributes to name
|
# Add attributes to name
|
||||||
for attr in nzb.find('{%s}attributes' % REPORT_NS):
|
for attr in nzb.find('{%s}attributes' % REPORT_NS):
|
||||||
@@ -120,7 +120,7 @@ class Newzbin(NZBProvider, RSS):
|
|||||||
|
|
||||||
return results
|
return results
|
||||||
except SyntaxError:
|
except SyntaxError:
|
||||||
log.error('Failed to parse XML response from newzbin.com')
|
log.error('Failed to parse XML response from newzbin')
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user