Private GIT

Skip to content
Snippets Groups Projects
Commit 7689f11e authored by miigotu's avatar miigotu
Browse files

Merge pull request #734 from SickRage/small-tpb-typo

Forgot get_text for seeders/leechers in TPB rewrite
parents 55bfa4b5 1bbfc091
Branches
No related tags found
No related merge requests found
......@@ -110,8 +110,8 @@ class ThePirateBayProvider(TorrentProvider): # pylint: disable=too-many-instanc
if not all([title, download_url]):
continue
seeders = try_int(cells[labels.index('SE')])
leechers = try_int(cells[labels.index('LE')])
seeders = try_int(cells[labels.index('SE')].get_text(strip=True))
leechers = try_int(cells[labels.index('LE')].get_text(strip=True))
if seeders < self.minseed or leechers < self.minleech:
if mode != 'RSS':
logger.log(u"Discarding torrent because it doesn't meet the minimum seeders or leechers: {0} (S:{1} L:{2})".format(title, seeders, leechers), logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment