playlist: parse playlist thumbnails for topic autogenerated playlists (#5616)

This commit is contained in:
Cameron Radmore 2026-02-04 10:57:16 -05:00 committed by GitHub
parent a9f812799c
commit ecbc21b067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -359,6 +359,9 @@ def fetch_playlist(plid : String)
thumbnail = playlist_info.dig?(
"thumbnailRenderer", "playlistVideoThumbnailRenderer",
"thumbnail", "thumbnails", 0, "url"
).try &.as_s || playlist_info.dig?(
"thumbnailRenderer", "playlistCustomThumbnailRenderer",
"thumbnail", "thumbnails", 0, "url"
).try &.as_s
views = 0_i64