mirror of
https://github.com/iv-org/invidious.git
synced 2026-10-24 22:09:13 -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
49d3d3fb37
commit
b7a122124a
@ -362,10 +362,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