From 5ed5c32668d866f1097e1560f98a112bbf665f55 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sun, 10 Oct 2021 19:47:56 +1300 Subject: [PATCH] improve logging for required language checks. #1853 --- core/auto_process/tv.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/auto_process/tv.py b/core/auto_process/tv.py index 5c0fead7..84a93427 100644 --- a/core/auto_process/tv.py +++ b/core/auto_process/tv.py @@ -152,7 +152,11 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu failed = 1 if 'NZBOP_VERSION' in os.environ and os.environ['NZBOP_VERSION'][0:5] >= '14.0': print('[NZB] MARK=BAD') - if good_files < num_files and failure_link: # don't mark corrupt if failed due to require_lan + if good_files == num_files: + logger.debug('Video marked as failed due to missing required language: {0}'.format(core.REQUIRE_LAN), section) + else: + logger.debug('Video marked as failed due to missing playable audio or video', section) + if good_files < num_files and failure_link: # only report corrupt files failure_link += '&corrupt=true' elif client_agent == 'manual': logger.warning('No media files found in directory {0} to manually process.'.format(dir_name), section)