Fix #1382 : Playlists missing first video

The index was set to index - 1, causing the first video to be shifted in fetch_playlist_videos
(because of its index being -1 lower than it should) and thus not displayed on playlist page.
pull/1387/head
Gauthier POGAM--LE MONTAGNER 2020-09-25 14:26:07 +02:00
rodzic 9995a8d53f
commit 1595eaeb74
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -483,7 +483,7 @@ def extract_playlist_videos(initial_data : Hash(String, JSON::Any))
published: Time.utc, published: Time.utc,
plid: plid, plid: plid,
live_now: live, live_now: live,
index: index - 1, index: index,
}) })
end end
end end