Skip to content

Commit ecbc21b

Browse files
playlist: parse playlist thumbnails for topic autogenerated playlists (#5616)
1 parent a9f8127 commit ecbc21b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/invidious/playlists.cr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ def fetch_playlist(plid : String)
359359
thumbnail = playlist_info.dig?(
360360
"thumbnailRenderer", "playlistVideoThumbnailRenderer",
361361
"thumbnail", "thumbnails", 0, "url"
362+
).try &.as_s || playlist_info.dig?(
363+
"thumbnailRenderer", "playlistCustomThumbnailRenderer",
364+
"thumbnail", "thumbnails", 0, "url"
362365
).try &.as_s
363366

364367
views = 0_i64

0 commit comments

Comments
 (0)