diff --git a/resources/lib/search.py b/resources/lib/search.py index 6ab67e2..45332c8 100644 --- a/resources/lib/search.py +++ b/resources/lib/search.py @@ -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),