Merge pull request #196 from JackDandy/feature/ChangeTestingFailedWhenPickingBest

Change when picking a best result to only test items that have a size ...
This commit is contained in:
JackDandy 2015-02-15 02:54:46 +00:00
commit 54904f33f1
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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