Commit fa87765

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-01-23 03:56:34
fix(ytdlp): add missing youtube comments
1 parent 1f8bac0
Changed files (1)
src
preview
src/preview/ytdlp.py
@@ -184,7 +184,7 @@ async def preview_ytdlp(
     if bilibili_comments and platform == "bilibili":
         comments = await get_bilibili_comments(kwargs.get("bvid"))
     if youtube_comments and platform == "youtube":
-        await get_youtube_comments(kwargs.get("vid"))
+        comments = await get_youtube_comments(kwargs.get("vid"))
 
     for comment in comments:
         if len(f"{texts}{comment}") < CAPTION_LENGTH: