diff --git a/CHANGES.md b/CHANGES.md index 9e80da8c..0c0a004b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -56,6 +56,7 @@ * Add desktop notifications * Change the AniDB provider image for a sharper looking version * Change to streamline iCal function and make it handle missing network names +* Change when picking a best result to only test items that have a size specifier against the failed history [develop changelog] * Change uT params from unicode to str.format as magnet URLs worked but sending files in POST bodies failed diff --git a/sickbeard/search.py b/sickbeard/search.py index ab07248e..30174d3d 100644 --- a/sickbeard/search.py +++ b/sickbeard/search.py @@ -222,8 +222,9 @@ def pickBestResult(results, show, quality_list=None): logger.MESSAGE) continue - if sickbeard.USE_FAILED_DOWNLOADS and failed_history.hasFailed(cur_result.name, cur_result.size, - cur_result.provider.name): + cur_size = getattr(cur_result, 'size', None) + if sickbeard.USE_FAILED_DOWNLOADS and None is not cur_size and failed_history.hasFailed( + cur_result.name, cur_size, cur_result.provider.name): logger.log(cur_result.name + u" has previously failed, rejecting it") continue