Private GIT

Skip to content
Snippets Groups Projects
Commit 0582f7d6 authored by Ruud's avatar Ruud
Browse files

Urlencode spotweb id. fix #1213

parent fa7cac75
No related branches found
No related tags found
No related merge requests found
...@@ -73,8 +73,8 @@ class Newznab(NZBProvider, RSS): ...@@ -73,8 +73,8 @@ class Newznab(NZBProvider, RSS):
'name': self.getTextElement(nzb, 'title'), 'name': self.getTextElement(nzb, 'title'),
'age': self.calculateAge(int(time.mktime(parse(date).timetuple()))), 'age': self.calculateAge(int(time.mktime(parse(date).timetuple()))),
'size': int(self.getElement(nzb, 'enclosure').attrib['length']) / 1024 / 1024, 'size': int(self.getElement(nzb, 'enclosure').attrib['length']) / 1024 / 1024,
'url': (self.getUrl(host['host'], self.urls['download']) % nzb_id) + self.getApiExt(host), 'url': (self.getUrl(host['host'], self.urls['download']) % tryUrlencode(nzb_id)) + self.getApiExt(host),
'detail_url': '%sdetails/%s' % (cleanHost(host['host']), nzb_id), 'detail_url': '%sdetails/%s' % (cleanHost(host['host']), tryUrlencode(nzb_id)),
'content': self.getTextElement(nzb, 'description'), 'content': self.getTextElement(nzb, 'description'),
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment