Fixed TorrentReactor class

The output from TorrentReactor was not matching the structure in this file (perhaps a recent change?), so the script was keeping returning a generic error.
This commit is contained in:
TheLegs 2013-12-02 20:55:39 +01:00
parent bb4b001fb6
commit d5c769229a

View file

@ -59,9 +59,9 @@ class TorrentReactor(Search):
f = urlopen(url)
soup = BeautifulStoneSoup(f.read())
for item in soup.findAll('item'):
(seeds, leechers) = re.findall('Status: (\d+) seeders, (\d+) leecher', item.description.text)[0]
(seeds, leechers) = re.findall('Status: (\d+) seeder, (\d+) leecher', item.description.text)[0]
torrents.append({
'url': item.enclosure['url'],
'url': item.url.text,
'name': item.title.text,
'seeds': int(seeds),
'leechers': int(leechers),