Skip to content

Commit b95f730

Browse files
authored
Merge pull request #797 from tsoding/666
(#666) Reenable friday videos thumbnails back
2 parents 7d1713d + 81e1454 commit b95f730

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/Bot/Friday.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,11 @@ renderQueue queue@(FridayVideo {fridayVideoAuthor = user}:_) =
229229
|] :) $
230230
map
231231
(\video ->
232-
[qms||{fridayVideoDate video}
233-
|{fridayVideoAuthor video}
234-
|{fridayVideoName video}||])
232+
let ytId = fromMaybe "dQw4w9WgXcQ" $ ytLinkId $ fridayVideoName video
233+
in [qms||{fridayVideoDate video}
234+
|{fridayVideoAuthor video}
235+
|{fridayVideoName video}
236+
|[[https://img.youtube.com/vi/{ytId}/default.jpg]]||])
235237
queue
236238
renderQueue [] = ""
237239

0 commit comments

Comments
 (0)