mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
linting
This commit is contained in:
parent
fb3ec5f67e
commit
83d4013ccb
1 changed files with 2 additions and 2 deletions
|
@ -662,7 +662,7 @@ def run(self, info):
|
|||
temp_filename = prepend_extension(filename, 'temp')
|
||||
self.to_screen('Embedding subtitles in "%s"' % filename)
|
||||
if info['ext'] in self.SUPPORTS_LYRICS:
|
||||
self.embed_lyrics(info['filepath'],sub_dict=info['requested_subtitles'])
|
||||
self.embed_lyrics(info['filepath'], sub_dict=info['requested_subtitles'])
|
||||
else:
|
||||
self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
|
||||
os.replace(temp_filename, filename)
|
||||
|
@ -670,7 +670,7 @@ def run(self, info):
|
|||
files_to_delete = [] if self._already_have_subtitle else sub_filenames
|
||||
return files_to_delete, info
|
||||
|
||||
def embed_lyrics(self, audio_file,sub_dict):
|
||||
def embed_lyrics(self, audio_file, sub_dict):
|
||||
if len(sub_dict) > 1:
|
||||
self.report_warning('More than one subtitle file found. Your media player will likely be unable to display all of them.')
|
||||
|
||||
|
|
Loading…
Reference in a new issue