Skip to content

Commit

Permalink
Fixed dict get default
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Nov 23, 2024
1 parent cc0a336 commit 650a52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ffmpeg_automator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_audio_maps(streams): # noqa: WPS231
if stream['codec_type'] == 'audio':
index = index + 1
audio_map_backup.append('0:a:{0}'.format(str(index))) # Used if no matching languages are found
language = stream.get('tags', {}).get('language')
language = stream.get('tags', {}).get('language', '')
language_lower = language.lower()
if language_lower in audio_languages:
if not get_first_audio_per_lang_only or (get_first_audio_per_lang_only and language_lower not in lang_found): # noqa: E501, WPS337, WPS408
Expand Down

0 comments on commit 650a52b

Please sign in to comment.