From f3f045299ba91ea54536b52217bdba41934f2559 Mon Sep 17 00:00:00 2001 From: Cameron Radmore Date: Sat, 12 Sep 2026 21:32:19 -0400 Subject: [PATCH] chore(docs): add comment for GridShowRenderer and fix format --- src/invidious/yt_backend/extractors.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.cr index efd89580b..c2a7bb41c 100644 --- a/src/invidious/yt_backend/extractors.cr +++ b/src/invidious/yt_backend/extractors.cr @@ -339,6 +339,15 @@ private module Parsers end end + # Parses a InnerTube gridShowRenderer into a SearchPlaylist. Returns nil when the given object isn't a gridShowRenderer + # + # A gridShowRenderer renders a playlist, that is located in a grid, to click on within the YouTube and Invidious UI. + # It is **not** the playlist itself. + # + # See specs for example. + # + # `gridShowRenderer`s can be found on the "shows" tab of channels. + # module GridShowRenderer extend self include BaseParser @@ -376,6 +385,7 @@ private module Parsers return {{@type.name}} end end + # Parses a InnerTube playlistRenderer into a SearchPlaylist. Returns nil when the given object isn't a playlistRenderer # # A playlistRenderer renders a playlist to click on within the YouTube and Invidious UI. It is **not** the playlist itself.