1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-18 14:35:51 +00:00

[ie/youtube] Support comment subthreads (#15419)

* Support newly rolled out comment "subthreads"
* Fix comments extraction: all replies were being missed
* Add a `max-depth` element to the `max_comments` extractor-arg
* Fully remove the deprecated `max_comment_depth` extractor-arg

Closes #15303
Authored by: bashonly
This commit is contained in:
bashonly
2025-12-29 15:46:29 -06:00
committed by GitHub
parent abf29e3e72
commit d22436e5dc
3 changed files with 68 additions and 14 deletions

View File

@@ -1065,7 +1065,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
return next_continuation
return traverse_obj(renderer, (
('contents', 'items', 'rows'), ..., 'continuationItemRenderer',
('contents', 'items', 'rows', 'subThreads'), ..., 'continuationItemRenderer',
('continuationEndpoint', ('button', 'buttonRenderer', 'command')),
), get_all=False, expected_type=cls._extract_continuation_ep_data)