Private GIT

Skip to content
Snippets Groups Projects
Commit b7469846 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Updated newzbin provider to use newzbin2.es

parent 9427d92f
Branches
Tags
No related merge requests found
...@@ -73,9 +73,9 @@ class NewzbinProvider(generic.NZBProvider): ...@@ -73,9 +73,9 @@ class NewzbinProvider(generic.NZBProvider):
self.cache = NewzbinCache(self) self.cache = NewzbinCache(self)
self.url = 'https://www.newzbin.com/' self.url = 'https://www.newzbin2.es/'
self.NEWZBIN_NS = 'http://www.newzbin.com/DTD/2007/feeds/report/' self.NEWZBIN_NS = 'http://www.newzbin2.es/DTD/2007/feeds/report/'
self.NEWZBIN_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S %Z' self.NEWZBIN_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S %Z'
...@@ -288,7 +288,7 @@ class NewzbinProvider(generic.NZBProvider): ...@@ -288,7 +288,7 @@ class NewzbinProvider(generic.NZBProvider):
raise exceptions.AuthException("The feed wouldn't load, probably because of invalid auth info") raise exceptions.AuthException("The feed wouldn't load, probably because of invalid auth info")
if sickbeard.USENET_RETENTION is not None: if sickbeard.USENET_RETENTION is not None:
try: try:
dateString = cur_item.findtext('{http://www.newzbin.com/DTD/2007/feeds/report/}postdate') dateString = cur_item.findtext('{http://www.newzbin2.es/DTD/2007/feeds/report/}postdate')
# use the parse (imported as parseDate) function from the dateutil lib # use the parse (imported as parseDate) function from the dateutil lib
# and we have to remove the timezone info from it because the retention_date will not have one # and we have to remove the timezone info from it because the retention_date will not have one
# and a comparison of them is not possible # and a comparison of them is not possible
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment