From e8e2aa93d621b3f2ffe9c8f7b06d381012f6bff8 Mon Sep 17 00:00:00 2001 From: Astounds Date: Sun, 5 Apr 2026 18:19:05 -0500 Subject: fix(channel): fix shorts/streams pagination using continuation tokens - Add continuation_token_cache to store ctokens between page requests - Use cached ctoken for page 2+ instead of generating fresh tokens - Switch shorts/streams to Next/Previous buttons (no page numbers) - Show "N+ videos" indicator when more pages are available - Fix UnboundLocalError when page_call was undefined for shorts/streams The issue was that YouTube's InnerTube API requires continuation tokens for pagination on shorts/streams tabs, but the code was generating a new ctoken each time, always returning the same 30 videos. --- youtube/templates/channel.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'youtube/templates/channel.html') diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html index 2c0a1a2..274b727 100644 --- a/youtube/templates/channel.html +++ b/youtube/templates/channel.html @@ -82,7 +82,11 @@