mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-26 11:35:27 -05:00
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
This commit is contained in:
parent
f7139af4ef
commit
6969e61f5e
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user