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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user