diff options
-rw-r--r-- | youtube/yt_data_extract/common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/common.py b/youtube/yt_data_extract/common.py index 1ec3dc3..5feda87 100644 --- a/youtube/yt_data_extract/common.py +++ b/youtube/yt_data_extract/common.py @@ -395,7 +395,8 @@ def _traverse_standard_list(renderer): nested_renderer_dispatch = { 'singleColumnBrowseResultsRenderer': _traverse_browse_renderer, 'twoColumnBrowseResultsRenderer': _traverse_browse_renderer, - 'twoColumnSearchResultsRenderer': lambda renderer: get(renderer, 'primaryContents', {}), + 'twoColumnSearchResultsRenderer': lambda r: get(r, 'primaryContents', {}), + 'richItemRenderer': lambda r: get(r, 'content', {}), } # these renderers contain a list of renderers inside them @@ -403,6 +404,7 @@ nested_renderer_list_dispatch = { 'sectionListRenderer': _traverse_standard_list, 'itemSectionRenderer': _traverse_standard_list, 'gridRenderer': _traverse_standard_list, + 'richGridRenderer': _traverse_standard_list, 'playlistVideoListRenderer': _traverse_standard_list, 'singleColumnWatchNextResults': lambda r: (deep_get(r, 'results', 'results', 'contents', default=[]), None), } |