Skip to content

Commit

Permalink
Fixed lang filter for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Nov 24, 2024
1 parent 474002d commit 78250d6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/ffmpeg_automator.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ def get_audio_maps(streams):
# Filter languages
if 'all' not in languages:
lang_filtered_streams = filter_languages(filtered_streams, languages)

if lang_filtered_streams:
filtered_streams = lang_filtered_streams
else:
sys.stdout.write('No audio tracks found for given languages: {0}\n'.format(str(languages)))
sys.stdout.write('Ignoring audio track languages\n')
if lang_filtered_streams:
filtered_streams = lang_filtered_streams
else:
sys.stdout.write('No audio tracks found for given languages: {0}\n'.format(str(languages)))
sys.stdout.write('Ignoring audio track languages\n')

# Filter duplicate languages
if get_first_audio_per_lang_only:
Expand Down

0 comments on commit 78250d6

Please sign in to comment.