From 6b0b0a289a58eca0613e166ff54df6f0c4b32445 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 31 May 2022 23:10:45 +0530 Subject: [PATCH] [extractor/youtube:tab] Detect `videoRenderer` in `_post_thread_continuation_entries` --- yt_dlp/extractor/youtube.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 6d9659b1d..0f046d87f 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -4063,9 +4063,12 @@ def _post_thread_continuation_entries(self, post_thread_continuation): 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):