Add download handler to providers

This commit is contained in:
Ruud
2012-05-25 21:19:23 +02:00
parent 30256f4f36
commit bd8bd14cc8
2 changed files with 2 additions and 0 deletions
@@ -81,6 +81,7 @@ class Mysterbin(NZBProvider):
'size': size,
'url': self.urls['download'] % myster_id,
'description': description,
'download': self.download,
'check_nzb': False,
}
@@ -71,6 +71,7 @@ class NzbIndex(NZBProvider, RSS):
'id': nzbindex_id,
'type': 'nzb',
'provider': self.getName(),
'download': self.download,
'name': self.getTextElement(nzb, "title"),
'age': self.calculateAge(int(time.mktime(parse(self.getTextElement(nzb, "pubDate")).timetuple()))),
'size': tryInt(enclosure['length']) / 1024 / 1024,