mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Search: Parse playlists when searching a channel (#3804)
This commit is contained in:
commit
928ea75dbc
1 changed files with 3 additions and 1 deletions
|
@ -381,7 +381,7 @@ private module Parsers
|
||||||
# Parses an InnerTube itemSectionRenderer into a SearchVideo.
|
# Parses an InnerTube itemSectionRenderer into a SearchVideo.
|
||||||
# Returns nil when the given object isn't a ItemSectionRenderer
|
# 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
|
# by the result page for channel searches. It is located inside a continuationItems
|
||||||
# container.It is very similar to RichItemRendererParser
|
# container.It is very similar to RichItemRendererParser
|
||||||
#
|
#
|
||||||
|
@ -394,6 +394,8 @@ private module Parsers
|
||||||
|
|
||||||
private def self.parse(item_contents, author_fallback)
|
private def self.parse(item_contents, author_fallback)
|
||||||
child = VideoRendererParser.process(item_contents, author_fallback)
|
child = VideoRendererParser.process(item_contents, author_fallback)
|
||||||
|
child ||= PlaylistRendererParser.process(item_contents, author_fallback)
|
||||||
|
|
||||||
return child
|
return child
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue