mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
improve logging for required language checks. #1853
This commit is contained in:
parent
96c7e0c8a4
commit
5ed5c32668
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
||||||
failed = 1
|
failed = 1
|
||||||
if 'NZBOP_VERSION' in os.environ and os.environ['NZBOP_VERSION'][0:5] >= '14.0':
|
if 'NZBOP_VERSION' in os.environ and os.environ['NZBOP_VERSION'][0:5] >= '14.0':
|
||||||
print('[NZB] MARK=BAD')
|
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'
|
failure_link += '&corrupt=true'
|
||||||
elif client_agent == 'manual':
|
elif client_agent == 'manual':
|
||||||
logger.warning('No media files found in directory {0} to manually process.'.format(dir_name), section)
|
logger.warning('No media files found in directory {0} to manually process.'.format(dir_name), section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue