|
@@ -47,7 +47,7 @@ class Lang:
|
|
|
if stream.get('codec_type') not in Consts.lang_codecs:
|
|
if stream.get('codec_type') not in Consts.lang_codecs:
|
|
|
self.logger.debug(f"Skipping missing or ignored codec_type: {file['name']}:{stream['index']}")
|
|
self.logger.debug(f"Skipping missing or ignored codec_type: {file['name']}:{stream['index']}")
|
|
|
continue
|
|
continue
|
|
|
- if stream.get('tags', {}).get('language') in [ None, Consts.lang_undef ]:
|
|
|
|
|
|
|
+ if stream.get('tags', {}).get('language') in Consts.lang_missing:
|
|
|
self.logger.info(f"Missing/undefined language in {file['name']}:{stream['index']}:{stream['codec_type']}")
|
|
self.logger.info(f"Missing/undefined language in {file['name']}:{stream['index']}:{stream['codec_type']}")
|
|
|
add_lang.append(int(stream['index']))
|
|
add_lang.append(int(stream['index']))
|
|
|
title = stream.get('tags', {}).get('title')
|
|
title = stream.get('tags', {}).get('title')
|