mirror of
https://github.com/iv-org/invidious.git
synced 2026-02-12 15:18:29 -06:00
playlist: parse playlist thumbnails for topic autogenerated playlists (#5616)
This commit is contained in:
parent
a9f812799c
commit
ecbc21b067
@ -359,6 +359,9 @@ def fetch_playlist(plid : String)
|
|||||||
thumbnail = playlist_info.dig?(
|
thumbnail = playlist_info.dig?(
|
||||||
"thumbnailRenderer", "playlistVideoThumbnailRenderer",
|
"thumbnailRenderer", "playlistVideoThumbnailRenderer",
|
||||||
"thumbnail", "thumbnails", 0, "url"
|
"thumbnail", "thumbnails", 0, "url"
|
||||||
|
).try &.as_s || playlist_info.dig?(
|
||||||
|
"thumbnailRenderer", "playlistCustomThumbnailRenderer",
|
||||||
|
"thumbnail", "thumbnails", 0, "url"
|
||||||
).try &.as_s
|
).try &.as_s
|
||||||
|
|
||||||
views = 0_i64
|
views = 0_i64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user