summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGauthier POGAM--LE MONTAGNER <gpogam-lemontagner@acolad.com>2020-09-25 14:26:07 +0200
committerGauthier POGAM--LE MONTAGNER <gpogam-lemontagner@acolad.com>2020-09-25 14:26:07 +0200
commit1595eaeb743e2e6271136762b6d3071cd7a7eeb7 (patch)
tree0c7a6f1e03b9c9482b4440a42863ed7e45a29932
parent9995a8d53f21e848750a6d5476623e5788efd595 (diff)
downloadinvidious-1595eaeb743e2e6271136762b6d3071cd7a7eeb7.tar.gz
invidious-1595eaeb743e2e6271136762b6d3071cd7a7eeb7.tar.bz2
invidious-1595eaeb743e2e6271136762b6d3071cd7a7eeb7.zip
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.
-rw-r--r--src/invidious/playlists.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr
index 9190e4e6..c984a12a 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