diff --git a/sickbeard/image_cache.py b/sickbeard/image_cache.py index 54494d3b2fa8afbb1195865d014ed751759193a9..bf664b3fc2ab3951d2ecb652835ccf7c3ab6ee33 100644 --- a/sickbeard/image_cache.py +++ b/sickbeard/image_cache.py @@ -282,7 +282,7 @@ class ImageCache: if not need_images[self.POSTER] and not need_images[self.BANNER] and not need_images[self.POSTER_THUMB] and not \ need_images[self.BANNER_THUMB] and not need_images[self.FANART]: - logger.log(u"No new cache images needed, not retrieving new ones") + logger.log(u"No new cache images needed, not retrieving new ones", logger.DEBUG) return # check the show dir for poster or banner images and use them diff --git a/sickbeard/postProcessor.py b/sickbeard/postProcessor.py index a45a9b7184ac0e284e766ae5aff9b857a6a8153a..83c6119b0dad905eb0cfdda171cc3bd1101e88a5 100644 --- a/sickbeard/postProcessor.py +++ b/sickbeard/postProcessor.py @@ -497,13 +497,13 @@ class PostProcessor(object): if none were found. """ - logger.log(u"Analyzing name " + repr(name)) - to_return = (None, None, [], None, None) if not name: return to_return + logger.log(u"Analyzing name " + repr(name), logger.DEBUG) + name = helpers.remove_non_release_groups(helpers.remove_extension(name)) # parse the name to break it into show name, season, and episode diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index 20fbc1966d8392704987ae4eb2248f861befe499..e6c719d4383ede2a28d5ce0022175b25995a2845 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -233,7 +233,7 @@ def processDir(dirName, nzbName=None, process_method=None, force=False, is_prior videoInRar = filter(helpers.isMediaFile, rarContent) notwantedFiles = [x for x in fileList if x not in videoFiles] if notwantedFiles: - result.output += logHelper(u"Found unwanted files: " + str(notwantedFiles), logger.INFO) + result.output += logHelper(u"Found unwanted files: " + str(notwantedFiles), logger.DEBUG) #Don't Link media when the media is extracted from a rar in the same path if process_method in ('hardlink', 'symlink') and videoInRar: @@ -356,7 +356,7 @@ def validateDir(path, dirName, nzbNameOriginal, failed, result): except (InvalidNameException, InvalidShowException): pass - result.missedfiles.append(dirName + " : No processable items found in folder") + result.output += logHelper(dirName + " : No processable items found in folder", logger.DEBUG) return False def unRAR(path, rarFiles, force, result): diff --git a/sickbeard/scene_exceptions.py b/sickbeard/scene_exceptions.py index 169a26f3c4894436f57b5e7223d03be53dabf3db..61be00e33fadd8190516e9d5f09325d7ffed44d3 100644 --- a/sickbeard/scene_exceptions.py +++ b/sickbeard/scene_exceptions.py @@ -239,9 +239,9 @@ def retrieve_exceptions(): # since this could invalidate the results of the cache we clear it out after updating if changed_exceptions: - logger.log(u"Updated scene exceptions") + logger.log(u"Updated scene exceptions", logger.DEBUG) else: - logger.log(u"No scene exceptions update needed") + logger.log(u"No scene exceptions update needed", logger.DEBUG) # cleanup exception_dict.clear() diff --git a/sickbeard/search.py b/sickbeard/search.py index ff63be776b7fc79dd4176773af69d44ab70da238..b3e572ebea1932268a6e336118fae35ec0cc24c7 100644 --- a/sickbeard/search.py +++ b/sickbeard/search.py @@ -329,7 +329,7 @@ def wantedEpisodes(show, fromDate): anyQualities, bestQualities = common.Quality.splitQuality(show.quality) # @UnusedVariable allQualities = list(set(anyQualities + bestQualities)) - logger.log(u"Seeing if we need anything from " + show.name) + logger.log(u"Seeing if we need anything from " + show.name, logger.DEBUG) myDB = db.DBConnection() if show.air_by_date: @@ -496,10 +496,10 @@ def searchProviders(show, episodes, manualSearch=False, downCurQuality=False): break if search_mode == 'sponly': - logger.log(u"FALLBACK EPISODE SEARCH INITIATED ...") + logger.log(u"FALLBACK EPISODE SEARCH INITIATED ...", logger.DEBUG) search_mode = 'eponly' else: - logger.log(u"FALLBACK SEASON PACK SEARCH INITIATED ...") + logger.log(u"FALLBACK SEASON PACK SEARCH INITIATED ...", logger.DEBUG) search_mode = 'sponly' # skip to next provider if we have no results to process diff --git a/sickbeard/searchBacklog.py b/sickbeard/searchBacklog.py index 582709640e3e9b5508f25ed61d44074c6733920a..fc50b66bfc517327f096a2d5306ed3f99a1ba023 100644 --- a/sickbeard/searchBacklog.py +++ b/sickbeard/searchBacklog.py @@ -137,7 +137,7 @@ class BacklogSearcher: def _get_segments(self, show, fromDate): anyQualities, bestQualities = common.Quality.splitQuality(show.quality) # @UnusedVariable - logger.log(u"Seeing if we need anything from {show_name}".format(show_name=show.name)) + logger.log(u"Seeing if we need anything from {show_name}".format(show_name=show.name), logger.DEBUG) myDB = db.DBConnection() if show.air_by_date: diff --git a/sickbeard/tv.py b/sickbeard/tv.py index d06b1965f97d8de834ad10a37f8db6331e6a5118..93c4207f16542469a82d367cb3e091b45d99fac5 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -339,7 +339,7 @@ class TVShow(object): logger.log(str(self.indexerid) + u": Show dir doesn't exist, skipping NFO generation") return False - logger.log(str(self.indexerid) + u": Writing NFOs for show") + logger.log(str(self.indexerid) + u": Writing NFOs for show", logger.DEBUG) for cur_provider in sickbeard.metadata_provider_dict.values(): result = cur_provider.create_show_metadata(self) or result @@ -364,7 +364,7 @@ class TVShow(object): logger.log(str(self.indexerid) + u": Show dir doesn't exist, skipping NFO generation") return - logger.log(str(self.indexerid) + u": Writing NFOs for all episodes") + logger.log(str(self.indexerid) + u": Writing NFOs for all episodes", logger.DEBUG) myDB = db.DBConnection() sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE showid = ? AND location != ''", [self.indexerid]) @@ -405,10 +405,10 @@ class TVShow(object): def loadEpisodesFromDir(self): if not ek.ek(os.path.isdir, self._location): - logger.log(str(self.indexerid) + u": Show dir doesn't exist, not loading episodes from disk") + logger.log(str(self.indexerid) + u": Show dir doesn't exist, not loading episodes from disk", logger.DEBUG) return - logger.log(str(self.indexerid) + u": Loading all episodes from the show directory " + self._location) + logger.log(str(self.indexerid) + u": Loading all episodes from the show directory " + self._location, logger.DEBUG) # get file list mediaFiles = helpers.listMediaFiles(self._location) @@ -760,7 +760,7 @@ class TVShow(object): def loadFromDB(self, skipNFO=False): - logger.log(str(self.indexerid) + u": Loading show info from database") + logger.log(str(self.indexerid) + u": Loading show info from database", logger.DEBUG) myDB = db.DBConnection() sqlResults = myDB.select("SELECT * FROM tv_shows WHERE indexer_id = ?", [self.indexerid]) @@ -1048,7 +1048,7 @@ class TVShow(object): def populateCache(self): cache_inst = image_cache.ImageCache() - logger.log(u"Checking & filling cache for show " + self.name) + logger.log(u"Checking & filling cache for show " + self.name, logger.DEBUG) cache_inst.fill_cache(self) def refreshDir(self): @@ -1061,7 +1061,7 @@ class TVShow(object): self.loadEpisodesFromDir() # run through all locations from DB, check that they exist - logger.log(str(self.indexerid) + u": Loading all episodes with a location from the database") + logger.log(str(self.indexerid) + u": Loading all episodes with a location from the database", logger.DEBUG) myDB = db.DBConnection() sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE showid = ? AND location != ''", [self.indexerid])