From 340f4b62b7f766e81d4b402d352ce5a802bc5262 Mon Sep 17 00:00:00 2001 From: evilhero Date: Thu, 17 Jan 2019 14:42:51 -0500 Subject: [PATCH] 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 --- mylar/PostProcessor.py | 6 ++++-- mylar/search.py | 14 +++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/mylar/PostProcessor.py b/mylar/PostProcessor.py index eb8ce219..645316e9 100755 --- a/mylar/PostProcessor.py +++ b/mylar/PostProcessor.py @@ -612,8 +612,10 @@ class PostProcessor(object): issuechk = myDB.select("SELECT * from issues WHERE ComicID=?", [cs['ComicID']]) if not issuechk: - logger.fdebug('%s No corresponding issue #%s found for %s' % (module, temploc, cs['ComicID'])) - + try: + 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: c_date = cs['LastUpdated'] if c_date is None: diff --git a/mylar/search.py b/mylar/search.py index 5d8e2d81..c56b62b0 100755 --- a/mylar/search.py +++ b/mylar/search.py @@ -44,7 +44,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD unaltered_ComicName = None if filesafe: 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': AlternateSearch = filesafe else: @@ -60,7 +60,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD if Publisher: if Publisher == 'IDW Publishing': Publisher = 'IDW' - logger.fdebug('Publisher is : ' + Publisher) + logger.fdebug('Publisher is : %s' % Publisher) if IssueArcID and not IssueID: 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) if issuetitle: - logger.info('Issue Title given as : ' + issuetitle) + logger.fdebug('Issue Title given as : %s' % issuetitle) else: logger.fdebug('Issue Title not found. Setting to None.') @@ -91,8 +91,8 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD oneoff = True if SARC: logger.fdebug("Story-ARC Search parameters:") - logger.fdebug("Story-ARC: " + str(SARC)) - logger.fdebug("IssueArcID: " + str(IssueArcID)) + logger.fdebug("Story-ARC: %s" % SARC) + logger.fdebug("IssueArcID: %s" % IssueArcID) torprovider = [] 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) # 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) IssDt = str(IssueDate)[5:7] @@ -424,7 +424,7 @@ def search_init(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueD searchprov = mylar.TMP_PROV return findit, searchprov else: - logger.info('findit: %s' % findit) + logger.fdebug('findit: %s' % findit) #if searchprov == '32P': # pass if manualsearch is None: