mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 03:48:02 -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:
parent
cf6b61e4fe
commit
2985f61cce
@ -242,10 +242,11 @@ def pickBestResult(results, show, quality_list=None):
|
|||||||
logger.INFO)
|
logger.INFO)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if sickbeard.USE_FAILED_DOWNLOADS and failed_history.hasFailed(cur_result.name, cur_result.size,
|
if hasattr(cur_result, 'size'):
|
||||||
cur_result.provider.name):
|
if sickbeard.USE_FAILED_DOWNLOADS and failed_history.hasFailed(cur_result.name, cur_result.size,
|
||||||
logger.log(cur_result.name + u" has previously failed, rejecting it")
|
cur_result.provider.name):
|
||||||
continue
|
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:
|
if not bestResult or bestResult.quality < cur_result.quality and cur_result.quality != Quality.UNKNOWN:
|
||||||
bestResult = cur_result
|
bestResult = cur_result
|
||||||
|
Loading…
Reference in New Issue
Block a user