Invidious is an alternative front-end to YouTube
Parse playlists when searching a channel
chunky programmerb2a0e6f1ffe4
diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.crindex 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 Parsersprivate def self.parse(item_contents, author_fallback)child = VideoRendererParser.process(item_contents, author_fallback)+ child ||= PlaylistRendererParser.process(item_contents, author_fallback)+return childend