1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-10 23:38:30 +00:00

Update yt_dlp/postprocessor/ffmpeg.py

Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
This commit is contained in:
fjueic 2023-12-29 07:38:41 -08:00 committed by GitHub
parent 79bb8f51e4
commit 51af60e6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -674,7 +674,7 @@ def embed_lyrics(self, input_files):
subs = input_files[1]
if not subs.endswith('.lrc'):
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()
if audio_file.endswith('.mp3'):