From 8c10e99ccaa2c9cb6897daf6be389cad8b04452c Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 13 Oct 2020 14:15:55 +0200 Subject: [PATCH] Last miniature in playlist --- src/Twitch.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twitch.elm b/src/Twitch.elm index 6f6f2c6..9574457 100644 --- a/src/Twitch.elm +++ b/src/Twitch.elm @@ -72,7 +72,7 @@ videoId video = playlistMiniatureUrl : Playlist -> String playlistMiniatureUrl playlist = - case List.head (List.reverse playlist.videos) of + case List.head playlist.videos of Just v -> "videos/" ++ playlist.url ++ v.url ++ "miniature-050.png"