1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Preserve session-watched param on auto-proceed

This commit is contained in:
Cadence Ember 2021-04-26 00:22:14 +12:00
parent 2b2f8bf84a
commit e0238d7e7d
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
2 changed files with 6 additions and 4 deletions

View file

@ -18,7 +18,7 @@ block content
if first
script(type="module" src=getStaticURL("html", "/static/js/continuous.js"))
noscript
meta(http-equiv="refresh" content=`${video.lengthSeconds+5};url=/watch?v=${first.videoId}&continuous=1`)
meta(http-equiv="refresh" content=`${video.lengthSeconds+5};url=/watch?v=${first.videoId}&continuous=1&session-watched=${sessionWatchedNext}`)
main.video-page
.main-video-section
.video-container
@ -91,7 +91,8 @@ block content
if column.length
.related-cols
h2.related-header Autoplay next
+video_list_item("related-video", column.shift(), instanceOrigin, {continuous: true})
#continuous-first
+video_list_item("related-video", column.shift(), instanceOrigin, {continuous: true})
if column.length
.related-cols
h2.related-header Related videos