diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2023-05-31 22:27:53 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2023-05-31 22:27:53 +0200 |
| commit | 928ea75dbc07d1e7e0615c3bfe0e19d1f4a925e8 (patch) | |
| tree | de11e44498658955096f4b703425cd4e4458b9a6 /src | |
| parent | 381a0e326d413daba1418bfca820bbfe2b7829a3 (diff) | |
| parent | b2a0e6f1ffe448f8c3f6f943b34c673537210794 (diff) | |
| download | invidious-928ea75dbc07d1e7e0615c3bfe0e19d1f4a925e8.tar.gz invidious-928ea75dbc07d1e7e0615c3bfe0e19d1f4a925e8.tar.bz2 invidious-928ea75dbc07d1e7e0615c3bfe0e19d1f4a925e8.zip | |
Search: Parse playlists when searching a channel (#3804)
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/yt_backend/extractors.cr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.cr index 8ff4c1f9..6686e6e7 100644 --- a/src/invidious/yt_backend/extractors.cr +++ b/src/invidious/yt_backend/extractors.cr @@ -381,7 +381,7 @@ private module Parsers # Parses an InnerTube itemSectionRenderer into a SearchVideo. # Returns nil when the given object isn't a ItemSectionRenderer # - # A itemSectionRenderer seems to be a simple wrapper for a videoRenderer, used + # A itemSectionRenderer seems to be a simple wrapper for a videoRenderer or a playlistRenderer, used # by the result page for channel searches. It is located inside a continuationItems # container.It is very similar to RichItemRendererParser # @@ -394,6 +394,8 @@ private module Parsers private def self.parse(item_contents, author_fallback) child = VideoRendererParser.process(item_contents, author_fallback) + child ||= PlaylistRendererParser.process(item_contents, author_fallback) + return child end |
