Fix only generating the bwlists for the first item.

This commit is contained in:
Alexandre Beloin 2015-01-14 21:37:17 -05:00
parent 7796f06b94
commit 10a199e62f
1 changed files with 3 additions and 2 deletions

View File

@ -208,8 +208,9 @@ def pickBestResult(results, show=None, quality_list=None):
continue
# build the black And white list
if not bwl and cur_result.show.is_anime:
bwl = BlackAndWhiteList(cur_result.show.indexerid)
if cur_result.show.is_anime:
if not bwl:
bwl = BlackAndWhiteList(cur_result.show.indexerid)
if not bwl.is_valid(cur_result):
logger.log(cur_result.name+" does not match the blacklist or the whitelist, rejecting it. Result: " + bwl.get_last_result_msg(), logger.INFO)
continue