Invidious is an alternative front-end to YouTube
Lookback 50 videos
Samantaz Fox678b10dbcfc7
diff --git a/src/invidious/routes/api/v1/misc.cr b/src/invidious/routes/api/v1/misc.crindex da5a940c..80b59fd5 100644--- a/src/invidious/routes/api/v1/misc.cr+++ b/src/invidious/routes/api/v1/misc.cr@@ -47,9 +47,8 @@ module Invidious::Routes::API::V1::Miscend# includes into the playlist a maximum of 20 videos, before the offset- lookback = 20if offset > 0- lookback = offset < lookback ? offset : lookback+ lookback = offset < 50 ? offset : 50response = playlist.to_json(offset - lookback, locale)json_response = JSON.parse(response)else@@ -58,6 +57,7 @@ module Invidious::Routes::API::V1::Misc# First we find the actual offset, and then we lookback# it shouldn't happen often though+ lookback = 0response = playlist.to_json(offset, locale, video_id: video_id)json_response = JSON.parse(response)