1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-12 12:25:07 -05:00

Fix Proper instance has no attribute 'size'

When findpropper call pickBestResult the instance as not attribute
'size'. Added a check.
This commit is contained in:
Alexandre Beloin 2015-02-03 11:30:12 -05:00
parent cf6b61e4fe
commit 2985f61cce

View File

@ -242,10 +242,11 @@ def pickBestResult(results, show, quality_list=None):
logger.INFO)
continue
if sickbeard.USE_FAILED_DOWNLOADS and failed_history.hasFailed(cur_result.name, cur_result.size,
cur_result.provider.name):
logger.log(cur_result.name + u" has previously failed, rejecting it")
continue
if hasattr(cur_result, 'size'):
if sickbeard.USE_FAILED_DOWNLOADS and failed_history.hasFailed(cur_result.name, cur_result.size,
cur_result.provider.name):
logger.log(cur_result.name + u" has previously failed, rejecting it")
continue
if not bestResult or bestResult.quality < cur_result.quality and cur_result.quality != Quality.UNKNOWN:
bestResult = cur_result