mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
changed report_error to PostProcessingError
This commit is contained in:
parent
c4d187c7a3
commit
e564c56eac
1 changed files with 2 additions and 2 deletions
|
@ -585,7 +585,7 @@ def _options(target_ext):
|
|||
|
||||
|
||||
class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
|
||||
AUDIO_EXTS = ('mp3','m4a','flac','opus','acc')
|
||||
AUDIO_EXTS = ('mp3','m4a','flac','opus')
|
||||
SUPPORTED_EXTS = ('mp4', 'mov', 'm4a', 'webm', 'mkv', 'mka')
|
||||
|
||||
def __init__(self, downloader=None, already_have_subtitle=False):
|
||||
|
@ -671,7 +671,7 @@ def embed_lyrics(self, input_files):
|
|||
audio_file = input_files[0]
|
||||
subs = input_files[1]
|
||||
if not subs.endswith('.lrc'):
|
||||
self.report_error('LRC subtitles required. Use "--convert-subs lrc" to convert')
|
||||
raise PostProcessingError('LRC subtitles required. Use "--convert-subs lrc" to convert')
|
||||
else:
|
||||
with open(subs, 'r', encoding='utf-8') as f:
|
||||
lyrics=f.read().strip()
|
||||
|
|
Loading…
Reference in a new issue