diff --git a/backend/services/ytdlp.py b/backend/services/ytdlp.py index e606243..6447981 100644 --- a/backend/services/ytdlp.py +++ b/backend/services/ytdlp.py @@ -398,10 +398,10 @@ def fetch_video_comments(youtube_video_id: str, max_comments: int = 20) -> list[ "yt-dlp", url, "--write-info-json", "--write-comments", - "--extractor-args", f"youtube:max_comments={max_comments};comment_sort=top", - "--no-download", + # Format: thread_count,total_count,replies_per_thread,reply_pages + "--extractor-args", f"youtube:max_comments={max_comments},{max_comments},0,0;comment_sort=top", + "--skip-download", "--no-playlist", - "--quiet", "--output", out_tmpl, *_cookie_args(), ]