mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Unable to parse filename errors are now set to show via DEBUG logs only to prevent unicode chars from causing misc beeping sounds ...
This commit is contained in:
parent
9dd679e30f
commit
933fad20c7
6 changed files with 18 additions and 17 deletions
|
@ -116,10 +116,10 @@ def splitResult(result):
|
|||
np = NameParser(False)
|
||||
parse_result = np.parse(result.name)
|
||||
except InvalidNameException:
|
||||
logger.log(u"Unable to parse the filename " + result.name + " into a valid episode", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + result.name + " into a valid episode", logger.DEBUG)
|
||||
return False
|
||||
except InvalidShowException:
|
||||
logger.log(u"Unable to parse the filename " + result.name + " into a valid show", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + result.name + " into a valid show", logger.DEBUG)
|
||||
return False
|
||||
|
||||
# bust it up
|
||||
|
@ -138,10 +138,10 @@ def splitResult(result):
|
|||
np = NameParser(False)
|
||||
parse_result = np.parse(newNZB)
|
||||
except InvalidNameException:
|
||||
logger.log(u"Unable to parse the filename " + newNZB + " into a valid episode", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + newNZB + " into a valid episode", logger.DEBUG)
|
||||
return False
|
||||
except InvalidShowException:
|
||||
logger.log(u"Unable to parse the filename " + newNZB + " into a valid show", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + newNZB + " into a valid show", logger.DEBUG)
|
||||
return False
|
||||
|
||||
# make sure the result is sane
|
||||
|
|
|
@ -111,7 +111,7 @@ class ProperFinder():
|
|||
logger.log(u"Unable to parse the filename " + curProper.name + " into a valid episode", logger.DEBUG)
|
||||
continue
|
||||
except InvalidShowException:
|
||||
logger.log(u"Unable to parse the filename " + curProper.name + " into a valid show", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + curProper.name + " into a valid show", logger.DEBUG)
|
||||
continue
|
||||
|
||||
if not parse_result.series_name:
|
||||
|
|
|
@ -50,10 +50,10 @@ def filterBadReleases(name):
|
|||
fp = NameParser()
|
||||
parse_result = fp.parse(name)
|
||||
except InvalidNameException:
|
||||
logger.log(u"Unable to parse the filename " + name + " into a valid episode", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + name + " into a valid episode", logger.DEBUG)
|
||||
return False
|
||||
except InvalidShowException:
|
||||
logger.log(u"Unable to parse the filename " + name + " into a valid show", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + name + " into a valid show", logger.DEBUG)
|
||||
return False
|
||||
|
||||
# if any of the bad strings are in the name then say no
|
||||
|
|
|
@ -619,10 +619,10 @@ class TVShow(object):
|
|||
myParser = NameParser(True, showObj=self, useIndexers=True)
|
||||
parse_result = myParser.parse(file)
|
||||
except InvalidNameException:
|
||||
logger.log(u"Unable to parse the filename " + file + " into a valid episode", logger.ERROR)
|
||||
logger.log(u"Unable to parse the filename " + file + " into a valid episode", logger.DEBUG)
|
||||
return None
|
||||
except InvalidShowException:
|
||||
logger.log(u"Unable to parse the filename " + file + " into a valid show", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + file + " into a valid show", logger.DEBUG)
|
||||
return None
|
||||
|
||||
if not len(parse_result.episode_numbers) and not (parse_result.air_by_date or parse_result.sports):
|
||||
|
|
|
@ -247,7 +247,7 @@ class TVCache():
|
|||
logger.log(u"Unable to parse the filename " + name + " into a valid episode", logger.DEBUG)
|
||||
return None
|
||||
except InvalidShowException:
|
||||
logger.log(u"Unable to parse the filename " + name + " into a valid show", logger.WARNING)
|
||||
logger.log(u"Unable to parse the filename " + name + " into a valid show", logger.DEBUG)
|
||||
return None
|
||||
|
||||
if not parse_result or not parse_result.series_name:
|
||||
|
|
|
@ -970,16 +970,16 @@ class CMD_EpisodeSetStatus(ApiCall):
|
|||
ep_results = []
|
||||
failure = False
|
||||
start_backlog = False
|
||||
ep_segment = None
|
||||
ep_segment = {}
|
||||
|
||||
sql_l = []
|
||||
for epObj in ep_list:
|
||||
if ep_segment == None and self.status == WANTED:
|
||||
# figure out what segment the episode is in and remember it so we can backlog it
|
||||
if showObj.air_by_date or showObj.sports:
|
||||
ep_segment = str(epObj.airdate)[:7]
|
||||
# figure out what episodes are wanted so we can backlog them
|
||||
if epObj.season in ep_segment:
|
||||
ep_segment[epObj.season].append(epObj)
|
||||
else:
|
||||
ep_segment = epObj.season
|
||||
ep_segment[epObj.season] = [epObj]
|
||||
|
||||
with epObj.lock:
|
||||
# don't let them mess up UNAIRED episodes
|
||||
|
@ -1013,8 +1013,9 @@ class CMD_EpisodeSetStatus(ApiCall):
|
|||
if start_backlog:
|
||||
cur_backlog_queue_item = search_queue.BacklogQueueItem(showObj, ep_segment)
|
||||
sickbeard.searchQueueScheduler.action.add_item(cur_backlog_queue_item) #@UndefinedVariable
|
||||
logger.log(u"API :: Starting backlog for " + showObj.name + " season " + str(
|
||||
ep_segment) + " because some episodes were set to WANTED")
|
||||
for season in ep_segment:
|
||||
logger.log(u"API :: Starting backlog for " + showObj.name + " season " + str(
|
||||
season) + " because some episodes were set to WANTED")
|
||||
extra_msg = " Backlog started"
|
||||
|
||||
if failure:
|
||||
|
|
Loading…
Reference in a new issue