Search: Parse playlists when searching a channel (#3804)

このコミットが含まれているのは:
Samantaz Fox 2023-05-31 22:27:53 +02:00
コミット 928ea75dbc
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: F42821059186176E
1個のファイルの変更3行の追加1行の削除

ファイルの表示

@ -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