diff --git a/sickbeard/nzbSplitter.py b/sickbeard/nzbSplitter.py index dc3a868b..24d326ee 100644 --- a/sickbeard/nzbSplitter.py +++ b/sickbeard/nzbSplitter.py @@ -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 diff --git a/sickbeard/properFinder.py b/sickbeard/properFinder.py index c316c6c8..94304320 100644 --- a/sickbeard/properFinder.py +++ b/sickbeard/properFinder.py @@ -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: diff --git a/sickbeard/show_name_helpers.py b/sickbeard/show_name_helpers.py index d622d82c..9d28932c 100644 --- a/sickbeard/show_name_helpers.py +++ b/sickbeard/show_name_helpers.py @@ -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 diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 5379eb35..984cfa53 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -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): diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 5bf13395..281b2a99 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -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: diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index 341033bf..e42873da 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -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: