summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorchunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-05-14 16:49:49 -0400
committerchunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-05-14 16:51:06 -0400
commitb2a0e6f1ffe448f8c3f6f943b34c673537210794 (patch)
treee93608c1cc72644f08e14acf6376037cb148be45 /src
parent3a54e9556b0cd28fd224db5801f8141a68108c13 (diff)
downloadinvidious-b2a0e6f1ffe448f8c3f6f943b34c673537210794.tar.gz
invidious-b2a0e6f1ffe448f8c3f6f943b34c673537210794.tar.bz2
invidious-b2a0e6f1ffe448f8c3f6f943b34c673537210794.zip
Parse playlists when searching a channel
Diffstat (limited to 'src')
-rw-r--r--src/invidious/yt_backend/extractors.cr4
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