mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-18 22:46:38 +00:00
playlist: parse playlist thumbnails for topic autogenerated playlists (#5616)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user