Commit e0fd1914 authored by echel0n's avatar echel0n

Cleaned up mass edit view code.

Fixed bug with comparing minseed and minleech values.
parent b55a8060
# Changelog
- * 09a9331 - 2018-12-02: Pre-Release v9.4.48.dev9
- * cde6d47 - 2018-12-04: Cleaned up mass edit view code. Fixed bug with comparing minseed and minleech values.
- * b55a806 - 2018-12-02: Pre-Release v9.4.48.dev9
- * ade442d - 2018-12-02: Upgraded to Tornado 5.1.1 Refactored IOLoop placement.
- * 97cf604 - 2018-12-02: Pre-Release v9.4.48.dev8
- * 977b8be - 2018-12-02: Reverted tornado back to v4.5.2
......
......@@ -167,15 +167,15 @@ def pickBestResult(results, show):
continue
# check if seeders meet out minimum requirements, disgard result if it does not
if hasattr(cur_result.provider, 'minseed') and cur_result.seeders not in (-1, None, ''):
if int(cur_result.seeders) < int(cur_result.provider.minseed):
if hasattr(cur_result.provider, 'minseed') and cur_result.seeders not in (-1, None):
if int(cur_result.seeders) < min(cur_result.provider.minseed, 1):
sickrage.app.log.info("Discarding torrent because it doesn't meet the minimum seeders: {}. Seeders: "
"{}".format(cur_result.name, cur_result.seeders))
continue
# check if leechers meet out minimum requirements, disgard result if it does not
if hasattr(cur_result.provider, 'minleech') and cur_result.leechers not in (-1, None, ''):
if int(cur_result.leechers) < int(cur_result.provider.minleech):
if hasattr(cur_result.provider, 'minleech') and cur_result.leechers not in (-1, None):
if int(cur_result.leechers) < min(cur_result.provider.minleech, 0):
sickrage.app.log.info("Discarding torrent because it doesn't meet the minimum leechers: {}. Leechers: "
"{}".format(cur_result.name, cur_result.leechers))
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment