mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 18:17:17 -05:00
[extractor/youtube:tab] Detect videoRenderer
in _post_thread_continuation_entries
This commit is contained in:
parent
f95b9dee45
commit
6b0b0a289a
@ -4063,9 +4063,12 @@ class YoutubeTabBaseInfoExtractor(YoutubeBaseInfoExtractor):
|
||||
return
|
||||
for content in contents:
|
||||
renderer = content.get('backstagePostThreadRenderer')
|
||||
if not isinstance(renderer, dict):
|
||||
if isinstance(renderer, dict):
|
||||
yield from self._post_thread_entries(renderer)
|
||||
continue
|
||||
yield from self._post_thread_entries(renderer)
|
||||
renderer = content.get('videoRenderer')
|
||||
if isinstance(renderer, dict):
|
||||
yield self._video_entry(renderer)
|
||||
|
||||
r''' # unused
|
||||
def _rich_grid_entries(self, contents):
|
||||
|
Loading…
Reference in New Issue
Block a user