mirror of https://github.com/evilhero/mylar
FIX: Fix for lone unicode character being mistakingly represented as an issue number during some post-processing scans, FIX: set INFO logging lines to DEBUG when performing RSS search
This commit is contained in:
parent
319d7f7f54
commit
340f4b62b7
|
@ -612,8 +612,10 @@ class PostProcessor(object):
|
||||||
issuechk = myDB.select("SELECT * from issues WHERE ComicID=?", [cs['ComicID']])
|
issuechk = myDB.select("SELECT * from issues WHERE ComicID=?", [cs['ComicID']])
|
||||||
|
|
||||||
if not issuechk:
|
if not issuechk:
|
||||||
|
try:
|
||||||
logger.fdebug('%s No corresponding issue #%s found for %s' % (module, temploc, cs['ComicID']))
|
logger.fdebug('%s No corresponding issue #%s found for %s' % (module, temploc, cs['ComicID']))
|
||||||
|
except:
|
||||||
|
continue
|
||||||
#check the last refresh date of the series, and if > than an hr try again:
|
#check the last refresh date of the series, and if > than an hr try again:
|
||||||
c_date = cs['LastUpdated']
|
c_date = cs['LastUpdated']
|
||||||
if c_date is None:
|
if c_date is None:
|
||||||
|
|
|
@ -44,7 +44,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD
|
||||||
unaltered_ComicName = None
|
unaltered_ComicName = None
|
||||||
if filesafe:
|
if filesafe:
|
||||||
if filesafe != ComicName and mode != 'want_ann':
|
if filesafe != ComicName and mode != 'want_ann':
|
||||||
logger.info('[SEARCH] Special Characters exist within Series Title. Enabling search-safe Name : ' + filesafe)
|
logger.info('[SEARCH] Special Characters exist within Series Title. Enabling search-safe Name : %s' % filesafe)
|
||||||
if AlternateSearch is None or AlternateSearch == 'None':
|
if AlternateSearch is None or AlternateSearch == 'None':
|
||||||
AlternateSearch = filesafe
|
AlternateSearch = filesafe
|
||||||
else:
|
else:
|
||||||
|
@ -60,7 +60,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD
|
||||||
if Publisher:
|
if Publisher:
|
||||||
if Publisher == 'IDW Publishing':
|
if Publisher == 'IDW Publishing':
|
||||||
Publisher = 'IDW'
|
Publisher = 'IDW'
|
||||||
logger.fdebug('Publisher is : ' + Publisher)
|
logger.fdebug('Publisher is : %s' % Publisher)
|
||||||
|
|
||||||
if IssueArcID and not IssueID:
|
if IssueArcID and not IssueID:
|
||||||
issuetitle = helpers.get_issue_title(IssueArcID)
|
issuetitle = helpers.get_issue_title(IssueArcID)
|
||||||
|
@ -68,7 +68,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD
|
||||||
issuetitle = helpers.get_issue_title(IssueID)
|
issuetitle = helpers.get_issue_title(IssueID)
|
||||||
|
|
||||||
if issuetitle:
|
if issuetitle:
|
||||||
logger.info('Issue Title given as : ' + issuetitle)
|
logger.fdebug('Issue Title given as : %s' % issuetitle)
|
||||||
else:
|
else:
|
||||||
logger.fdebug('Issue Title not found. Setting to None.')
|
logger.fdebug('Issue Title not found. Setting to None.')
|
||||||
|
|
||||||
|
@ -91,8 +91,8 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD
|
||||||
oneoff = True
|
oneoff = True
|
||||||
if SARC:
|
if SARC:
|
||||||
logger.fdebug("Story-ARC Search parameters:")
|
logger.fdebug("Story-ARC Search parameters:")
|
||||||
logger.fdebug("Story-ARC: " + str(SARC))
|
logger.fdebug("Story-ARC: %s" % SARC)
|
||||||
logger.fdebug("IssueArcID: " + str(IssueArcID))
|
logger.fdebug("IssueArcID: %s" % IssueArcID)
|
||||||
|
|
||||||
torprovider = []
|
torprovider = []
|
||||||
torp = 0
|
torp = 0
|
||||||
|
@ -177,7 +177,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD
|
||||||
|
|
||||||
prov_order, torznab_info, newznab_info = provider_sequence(nzbprovider, torprovider, newznab_hosts, torznab_hosts, ddlprovider)
|
prov_order, torznab_info, newznab_info = provider_sequence(nzbprovider, torprovider, newznab_hosts, torznab_hosts, ddlprovider)
|
||||||
# end provider order sequencing
|
# end provider order sequencing
|
||||||
logger.info('search provider order is ' + str(prov_order))
|
logger.fdebug('search provider order is ' + str(prov_order))
|
||||||
|
|
||||||
#fix for issue dates between Nov-Dec/(Jan-Feb-Mar)
|
#fix for issue dates between Nov-Dec/(Jan-Feb-Mar)
|
||||||
IssDt = str(IssueDate)[5:7]
|
IssDt = str(IssueDate)[5:7]
|
||||||
|
@ -424,7 +424,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD
|
||||||
searchprov = mylar.TMP_PROV
|
searchprov = mylar.TMP_PROV
|
||||||
return findit, searchprov
|
return findit, searchprov
|
||||||
else:
|
else:
|
||||||
logger.info('findit: %s' % findit)
|
logger.fdebug('findit: %s' % findit)
|
||||||
#if searchprov == '32P':
|
#if searchprov == '32P':
|
||||||
# pass
|
# pass
|
||||||
if manualsearch is None:
|
if manualsearch is None:
|
||||||
|
|
Loading…
Reference in New Issue