Commit 2eea1d1

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-12-21 14:15:25
fix(captions): ensure proper closing of blockquote tags
1 parent ccaf718
Changed files (1)
src
ytdlp
src/ytdlp/utils.py
@@ -225,8 +225,10 @@ async def append_subtitle(name: str, sent_messages: dict) -> dict:
                 break
         lines.insert(pos, name)
         captions = await smart_split("\n".join(lines), CAPTION_LENGTH)
-        logger.trace(captions[0])
-        return captions[0]
+        caption = captions[0]
+        if "<blockquote expandable>" in caption and "</blockquote>" not in caption:
+            caption += "</blockquote>"
+        return caption
 
     video_msgs = []
     audio_msg = None