Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Proposal for different fix AlphaRatio.cc provider #6414

Merged
merged 1 commit into from May 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions couchpotato/core/media/_base/providers/torrent/alpharatio.py
Expand Up @@ -43,14 +43,13 @@ def _search(self, media, quality, results):
link = result.find('a', attrs = {'dir': 'ltr'})
url = result.find('a', attrs = {'title': 'Download'})
tds = result.find_all('td')
size = tds[5].contents[0].strip('\n ')

results.append({
'id': link['href'].replace('torrents.php?id=', '').split('&')[0],
'name': link.contents[0],
'url': self.urls['download'] % url['href'],
'detail_url': self.urls['download'] % link['href'],
'size': self.parseSize(size),
'size': self.parseSize(tds[len(tds)-4].string),
'seeders': tryInt(tds[len(tds)-2].string),
'leechers': tryInt(tds[len(tds)-1].string),
})
Expand Down