mirror of
https://github.com/iv-org/invidious.git
synced 2026-07-07 06:06:48 -05:00
fix(extractors): restore collectionThumbnailViewModel path with dig? fallback
Try collectionThumbnailViewModel path first, fall back to direct thumbnailViewModel for lockupViewModel items that use different structures. Items with neither path are skipped cleanly.
This commit is contained in:
parent
669c685d5e
commit
347f84c276
@ -650,7 +650,10 @@ private module Parsers
|
||||
private def parse_internal(item_contents, author_fallback)
|
||||
playlist_id = item_contents["contentId"].as_s
|
||||
|
||||
thumbnail_view_model = item_contents.dig(
|
||||
thumbnail_view_model = item_contents.dig?(
|
||||
"contentImage", "collectionThumbnailViewModel",
|
||||
"primaryThumbnail", "thumbnailViewModel"
|
||||
) || item_contents.dig?(
|
||||
"contentImage", "thumbnailViewModel"
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user