[cleanup] Bump ruff to 0.8.x (#11608)

Authored by: seproDev
This commit is contained in:
sepro 2024-12-02 16:29:30 +01:00 committed by GitHub
parent 2bea793632
commit d8fb349086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 42 additions and 46 deletions

View file

@ -626,7 +626,7 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
sub_ext = sub_info['ext']
if sub_ext == 'json':
self.report_warning('JSON subtitles cannot be embedded')
elif ext != 'webm' or ext == 'webm' and sub_ext == 'vtt':
elif ext != 'webm' or (ext == 'webm' and sub_ext == 'vtt'):
sub_langs.append(lang)
sub_names.append(sub_info.get('name'))
sub_filenames.append(sub_info['filepath'])