From 6969e61f5e83138a71d1a2420e83504ccdd702e7 Mon Sep 17 00:00:00 2001 From: Cameron Radmore Date: Fri, 18 Sep 2026 13:38:29 -0400 Subject: [PATCH] fix: Remove `thumbnaiext` This property doesn't exist. Not exactly sure how it happened but I'm guessing I combined thumbnailOverlays and text somehow when I was doing a find and replace (Ctrl + H) and then formatting json with prettier --- src/invidious/yt_backend/extractors.cr | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.cr index c2a7bb41c..37bd2a665 100644 --- a/src/invidious/yt_backend/extractors.cr +++ b/src/invidious/yt_backend/extractors.cr @@ -363,10 +363,7 @@ private module Parsers plid = item_contents.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s.gsub("/show/VL", "").split("?sbp")[0] || "" author_verified = has_verified_badge?(item_contents["ownerBadges"]?) - video_count_node = item_contents.dig?("thumbnaiext") - video_count_node ||= item_contents.dig?("thumbnailOverlays", 0, "thumbnailOverlayBottomPanelRenderer", "text", "runs", 0, "text") - - video_count = video_count_node.try(&.as_s.to_i) || 0 + video_count = item_contents.dig?("thumbnailOverlays", 0, "thumbnailOverlayBottomPanelRenderer", "text", "runs", 0, "text").try(&.as_s.to_i) || 0 playlist_thumbnail = HelperExtractors.get_thumbnails(item_contents.dig("thumbnailRenderer", "showCustomThumbnailRenderer")) SearchPlaylist.new({