mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-30 10:28:31 +00:00
linting
This commit is contained in:
parent
fb3ec5f67e
commit
83d4013ccb
@ -662,7 +662,7 @@ def run(self, info):
|
|||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
self.to_screen('Embedding subtitles in "%s"' % filename)
|
self.to_screen('Embedding subtitles in "%s"' % filename)
|
||||||
if info['ext'] in self.SUPPORTS_LYRICS:
|
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:
|
else:
|
||||||
self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
|
self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
|
||||||
os.replace(temp_filename, filename)
|
os.replace(temp_filename, filename)
|
||||||
@ -670,7 +670,7 @@ def run(self, info):
|
|||||||
files_to_delete = [] if self._already_have_subtitle else sub_filenames
|
files_to_delete = [] if self._already_have_subtitle else sub_filenames
|
||||||
return files_to_delete, info
|
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:
|
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.')
|
self.report_warning('More than one subtitle file found. Your media player will likely be unable to display all of them.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user