mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2025-01-02 11:07:34 +00:00
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:
parent
bb4b001fb6
commit
d5c769229a
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue