From 1595eaeb743e2e6271136762b6d3071cd7a7eeb7 Mon Sep 17 00:00:00 2001 From: Gauthier POGAM--LE MONTAGNER Date: Fri, 25 Sep 2020 14:26:07 +0200 Subject: [PATCH] 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. --- src/invidious/playlists.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 9190e4e61..c984a12a5 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -483,7 +483,7 @@ def extract_playlist_videos(initial_data : Hash(String, JSON::Any)) published: Time.utc, plid: plid, live_now: live, - index: index - 1, + index: index, }) end end