mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 03:48:02 -05:00
Merge pull request #1189 from abeloin/patch-jquery_bwlists
Patch jquery bwlists
This commit is contained in:
commit
f59d8119da
@ -265,22 +265,22 @@ Separate words with a comma, e.g. "word1,word2,word3"<br />
|
|||||||
});
|
});
|
||||||
|
|
||||||
\$('#addToWhite').click(function() {
|
\$('#addToWhite').click(function() {
|
||||||
var group = \$('#addToPoolText').attr("value")
|
var group = \$('#addToPoolText').val()
|
||||||
if(group == "")
|
if(group == "")
|
||||||
return
|
return
|
||||||
\$('#addToPoolText').attr("value", "")
|
\$('#addToPoolText').val("")
|
||||||
var option = \$("<option>")
|
var option = \$("<option>")
|
||||||
option.attr("value",group)
|
option.prop("value",group)
|
||||||
option.html(group)
|
option.html(group)
|
||||||
return option.appendTo('#white');
|
return option.appendTo('#white');
|
||||||
});
|
});
|
||||||
\$('#addToBlack').click(function() {
|
\$('#addToBlack').click(function() {
|
||||||
var group = \$('#addToPoolText').attr("value")
|
var group = \$('#addToPoolText').val()
|
||||||
if(group == "")
|
if(group == "")
|
||||||
return
|
return
|
||||||
\$('#addToPoolText').attr("value", "")
|
\$('#addToPoolText').val("")
|
||||||
var option = \$("<option>")
|
var option = \$("<option>")
|
||||||
option.attr("value",group)
|
option.prop("value",group)
|
||||||
option.html(group)
|
option.html(group)
|
||||||
return option.appendTo('#black');
|
return option.appendTo('#black');
|
||||||
});
|
});
|
||||||
|
@ -208,8 +208,9 @@ def pickBestResult(results, show=None, quality_list=None):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# build the black And white list
|
# build the black And white list
|
||||||
if not bwl and cur_result.show.is_anime:
|
if cur_result.show.is_anime:
|
||||||
bwl = BlackAndWhiteList(cur_result.show.indexerid)
|
if not bwl:
|
||||||
|
bwl = BlackAndWhiteList(cur_result.show.indexerid)
|
||||||
if not bwl.is_valid(cur_result):
|
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)
|
logger.log(cur_result.name+" does not match the blacklist or the whitelist, rejecting it. Result: " + bwl.get_last_result_msg(), logger.INFO)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user