mirror of
https://github.com/moparisthebest/SickRage
synced 2024-08-13 16:53:54 -04: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
@ -116,10 +116,10 @@ def splitResult(result):
|
|||||||
np = NameParser(False)
|
np = NameParser(False)
|
||||||
parse_result = np.parse(result.name)
|
parse_result = np.parse(result.name)
|
||||||
except InvalidNameException:
|
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
|
return False
|
||||||
except InvalidShowException:
|
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
|
return False
|
||||||
|
|
||||||
# bust it up
|
# bust it up
|
||||||
@ -138,10 +138,10 @@ def splitResult(result):
|
|||||||
np = NameParser(False)
|
np = NameParser(False)
|
||||||
parse_result = np.parse(newNZB)
|
parse_result = np.parse(newNZB)
|
||||||
except InvalidNameException:
|
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
|
return False
|
||||||
except InvalidShowException:
|
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
|
return False
|
||||||
|
|
||||||
# make sure the result is sane
|
# 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)
|
logger.log(u"Unable to parse the filename " + curProper.name + " into a valid episode", logger.DEBUG)
|
||||||
continue
|
continue
|
||||||
except InvalidShowException:
|
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
|
continue
|
||||||
|
|
||||||
if not parse_result.series_name:
|
if not parse_result.series_name:
|
||||||
|
@ -50,10 +50,10 @@ def filterBadReleases(name):
|
|||||||
fp = NameParser()
|
fp = NameParser()
|
||||||
parse_result = fp.parse(name)
|
parse_result = fp.parse(name)
|
||||||
except InvalidNameException:
|
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
|
return False
|
||||||
except InvalidShowException:
|
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
|
return False
|
||||||
|
|
||||||
# if any of the bad strings are in the name then say no
|
# 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)
|
myParser = NameParser(True, showObj=self, useIndexers=True)
|
||||||
parse_result = myParser.parse(file)
|
parse_result = myParser.parse(file)
|
||||||
except InvalidNameException:
|
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
|
return None
|
||||||
except InvalidShowException:
|
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
|
return None
|
||||||
|
|
||||||
if not len(parse_result.episode_numbers) and not (parse_result.air_by_date or parse_result.sports):
|
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)
|
logger.log(u"Unable to parse the filename " + name + " into a valid episode", logger.DEBUG)
|
||||||
return None
|
return None
|
||||||
except InvalidShowException:
|
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
|
return None
|
||||||
|
|
||||||
if not parse_result or not parse_result.series_name:
|
if not parse_result or not parse_result.series_name:
|
||||||
|
@ -970,16 +970,16 @@ class CMD_EpisodeSetStatus(ApiCall):
|
|||||||
ep_results = []
|
ep_results = []
|
||||||
failure = False
|
failure = False
|
||||||
start_backlog = False
|
start_backlog = False
|
||||||
ep_segment = None
|
ep_segment = {}
|
||||||
|
|
||||||
sql_l = []
|
sql_l = []
|
||||||
for epObj in ep_list:
|
for epObj in ep_list:
|
||||||
if ep_segment == None and self.status == WANTED:
|
if ep_segment == None and self.status == WANTED:
|
||||||
# figure out what segment the episode is in and remember it so we can backlog it
|
# figure out what episodes are wanted so we can backlog them
|
||||||
if showObj.air_by_date or showObj.sports:
|
if epObj.season in ep_segment:
|
||||||
ep_segment = str(epObj.airdate)[:7]
|
ep_segment[epObj.season].append(epObj)
|
||||||
else:
|
else:
|
||||||
ep_segment = epObj.season
|
ep_segment[epObj.season] = [epObj]
|
||||||
|
|
||||||
with epObj.lock:
|
with epObj.lock:
|
||||||
# don't let them mess up UNAIRED episodes
|
# don't let them mess up UNAIRED episodes
|
||||||
@ -1013,8 +1013,9 @@ class CMD_EpisodeSetStatus(ApiCall):
|
|||||||
if start_backlog:
|
if start_backlog:
|
||||||
cur_backlog_queue_item = search_queue.BacklogQueueItem(showObj, ep_segment)
|
cur_backlog_queue_item = search_queue.BacklogQueueItem(showObj, ep_segment)
|
||||||
sickbeard.searchQueueScheduler.action.add_item(cur_backlog_queue_item) #@UndefinedVariable
|
sickbeard.searchQueueScheduler.action.add_item(cur_backlog_queue_item) #@UndefinedVariable
|
||||||
|
for season in ep_segment:
|
||||||
logger.log(u"API :: Starting backlog for " + showObj.name + " season " + str(
|
logger.log(u"API :: Starting backlog for " + showObj.name + " season " + str(
|
||||||
ep_segment) + " because some episodes were set to WANTED")
|
season) + " because some episodes were set to WANTED")
|
||||||
extra_msg = " Backlog started"
|
extra_msg = " Backlog started"
|
||||||
|
|
||||||
if failure:
|
if failure:
|
||||||
|
Loading…
Reference in New Issue
Block a user