[extractor/youtube:tab] Detect `videoRenderer` in `_post_thread_continuation_entries`

This commit is contained in:
pukkandan 2022-05-31 23:10:45 +05:30
parent f95b9dee45
commit 6b0b0a289a
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 5 additions and 2 deletions

View File

@ -4063,9 +4063,12 @@ class YoutubeTabBaseInfoExtractor(YoutubeBaseInfoExtractor):
return return
for content in contents: for content in contents:
renderer = content.get('backstagePostThreadRenderer') renderer = content.get('backstagePostThreadRenderer')
if not isinstance(renderer, dict): if isinstance(renderer, dict):
continue
yield from self._post_thread_entries(renderer) yield from self._post_thread_entries(renderer)
continue
renderer = content.get('videoRenderer')
if isinstance(renderer, dict):
yield self._video_entry(renderer)
r''' # unused r''' # unused
def _rich_grid_entries(self, contents): def _rich_grid_entries(self, contents):