From cff8164bcd90c76304ea08858fce1e7e3f3d8924 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sun, 4 Oct 2020 23:18:55 +0200 Subject: [PATCH] Last stream as playlist thumbnail --- src/Twitch.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twitch.elm b/src/Twitch.elm index 0d60b16..25d4f6b 100644 --- a/src/Twitch.elm +++ b/src/Twitch.elm @@ -64,7 +64,7 @@ get { url, resolver } = playlistMiniatureUrl : Playlist -> String playlistMiniatureUrl playlist = - case List.head playlist.videos of + case List.head (List.reverse playlist.videos) of Just v -> "videos/" ++ playlist.url ++ v ++ "miniature-050.png"