mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Allow multiple Req_Lan
This commit is contained in:
parent
d16aae2582
commit
118e0952fc
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ def is_video_good(videofile, status, require_lan=None):
|
|||
video_streams = [item for item in video_details['streams'] if item['codec_type'] == 'video']
|
||||
audio_streams = [item for item in video_details['streams'] if item['codec_type'] == 'audio']
|
||||
if require_lan:
|
||||
valid_audio = [item for item in audio_streams if 'tags' in item and 'language' in item['tags'] and item['tags']['language'] == require_lan ]
|
||||
valid_audio = [item for item in audio_streams if 'tags' in item and 'language' in item['tags'] and item['tags']['language'] in require_lan ]
|
||||
else:
|
||||
valid_audio = audio_streams
|
||||
if len(video_streams) > 0 and len(valid_audio) > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue