From 8f990d16d2ff8ee4bd6c693c785f7345937b9ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Mon, 18 Jan 2016 21:41:04 +0100 Subject: [PATCH] better desc for missing releases, also move the log message to not spam the log everytime we run an rename iteration --- couchpotato/core/plugins/renamer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/renamer.py b/couchpotato/core/plugins/renamer.py index d7844a8..8957e1a 100755 --- a/couchpotato/core/plugins/renamer.py +++ b/couchpotato/core/plugins/renamer.py @@ -1008,14 +1008,14 @@ Remove it if you want it to be renamed (again, or at least let it try again) break if not found_release: - log.info('%s not found in downloaders', nzbname) - #Check status if already missing and for how long, if > 1 week, set to ignored else to missing if rel.get('status') == 'missing': if rel.get('last_edit') < int(time.time()) - 7 * 24 * 60 * 60: + log.info('%s not found in downloaders after 7 days, setting status to ignored', nzbname) fireEvent('release.update_status', rel.get('_id'), status = 'ignored', single = True) else: # Set the release to missing + log.info('%s not found in downloaders, setting status to missing', nzbname) fireEvent('release.update_status', rel.get('_id'), status = 'missing', single = True) # Continue with next release @@ -1228,7 +1228,7 @@ Remove it if you want it to be renamed (again, or at least let it try again) log.error('Rar modify date enabled, but failed: %s', traceback.format_exc()) extr_files.append(extr_file_path) del rar_handle - # Tag archive as extracted if no cleanup. + # Tag archive as extracted if no cleanup. if not cleanup and os.path.isfile(extr_file_path): self.tagRelease(release_download = {'folder': os.path.dirname(archive['file']), 'files': [archive['file']]}, tag = 'extracted') except Exception as e: