mirror of
https://github.com/evilhero/mylar
synced 2025-03-09 13:24:53 +00:00
FIX: REDACTED blacklisted publisher option
This commit is contained in:
parent
6085c9f993
commit
d26fc2c743
3 changed files with 7 additions and 7 deletions
|
@ -645,7 +645,7 @@ def initialize():
|
||||||
BIGGIE_PUB = check_setting_str(CFG, 'General', 'biggie_pub', '55')
|
BIGGIE_PUB = check_setting_str(CFG, 'General', 'biggie_pub', '55')
|
||||||
|
|
||||||
flattened_blacklisted_pub = check_setting_str(CFG, 'General', 'blacklisted_publishers', [], log=False)
|
flattened_blacklisted_pub = check_setting_str(CFG, 'General', 'blacklisted_publishers', [], log=False)
|
||||||
if len(flattened_blacklisted_pub) == 0:
|
if len(flattened_blacklisted_pub) == 0 or flattened_blacklisted_pub == 'None':
|
||||||
BLACKLISTED_PUBLISHERS = None
|
BLACKLISTED_PUBLISHERS = None
|
||||||
else:
|
else:
|
||||||
BLACKLISTED_PUBLISHERS = list(itertools.izip(*[itertools.islice(flattened_blacklisted_pub, i, None, 1) for i in range(1)]))
|
BLACKLISTED_PUBLISHERS = list(itertools.izip(*[itertools.islice(flattened_blacklisted_pub, i, None, 1) for i in range(1)]))
|
||||||
|
|
|
@ -305,10 +305,10 @@ def findComic(name, mode, issue, limityear=None, explicit=None, type=None):
|
||||||
xmlpub = "Unknown"
|
xmlpub = "Unknown"
|
||||||
logger.info('publisher: ' + xmlpub)
|
logger.info('publisher: ' + xmlpub)
|
||||||
#ignore specific publishers on a global scale here.
|
#ignore specific publishers on a global scale here.
|
||||||
if mylar.BLACKLISTED_PUBLISHERS is not None and any([x for x in mylar.BLACKLISTED_PUBLISHERS if x.lower() == xmlpub.lower()]):
|
#if mylar.BLACKLISTED_PUBLISHERS in xmlpub.lower(): #any([x for x in mylar.BLACKLISTED_PUBLISHERS if x.lower() == xmlpub.lower()]):
|
||||||
#'panini' in xmlpub.lower() or 'deagostini' in xmlpub.lower() or 'Editorial Televisa' in xmlpub.lower():
|
# #'panini' in xmlpub.lower() or 'deagostini' in xmlpub.lower() or 'Editorial Televisa' in xmlpub.lower():
|
||||||
logger.fdebug('Blacklisted publisher [' + xmlpub + ']. Ignoring this result.')
|
# logger.fdebug('Blacklisted publisher [' + xmlpub + ']. Ignoring this result.')
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
xmldesc = result.getElementsByTagName('description')[0].firstChild.wholeText
|
xmldesc = result.getElementsByTagName('description')[0].firstChild.wholeText
|
||||||
|
|
|
@ -232,7 +232,7 @@ class WebInterface(object):
|
||||||
try:
|
try:
|
||||||
searchresults, explicit = mb.findComic(name, mode, issue=None, explicit=explicit)
|
searchresults, explicit = mb.findComic(name, mode, issue=None, explicit=explicit)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
logger.error('Unable to perform required pull-list search for : [name: ' + name + '][issue: ' + issue + '][mode: ' + mode + '][explicitsearch:' + explicit + ']')
|
logger.error('Unable to perform required pull-list search for : [name: ' + name + '][mode: ' + mode + '][explicitsearch:' + str(explicit) + ']')
|
||||||
return
|
return
|
||||||
elif type == 'comic' and mode == 'want':
|
elif type == 'comic' and mode == 'want':
|
||||||
try:
|
try:
|
||||||
|
@ -2356,7 +2356,7 @@ class WebInterface(object):
|
||||||
MSCheck[key].append(str(tchk['IssueYear']))
|
MSCheck[key].append(str(tchk['IssueYear']))
|
||||||
|
|
||||||
#write out here
|
#write out here
|
||||||
logger.febug(str(MSCheck))
|
#logger.fdebug(str(MSCheck))
|
||||||
|
|
||||||
#now we load in the list without the multiple entries (ie. series that appear only once in the cbl and don't have an IssueID)
|
#now we load in the list without the multiple entries (ie. series that appear only once in the cbl and don't have an IssueID)
|
||||||
Arc_Issues = myDB.select("SELECT * FROM readinglist WHERE StoryArcID=? AND IssueID is NULL GROUP BY ComicName HAVING (COUNT(ComicName) = 1)", [storyarcid])
|
Arc_Issues = myDB.select("SELECT * FROM readinglist WHERE StoryArcID=? AND IssueID is NULL GROUP BY ComicName HAVING (COUNT(ComicName) = 1)", [storyarcid])
|
||||||
|
|
Loading…
Add table
Reference in a new issue