mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-12-22 05:06:57 +00:00
Fix ?t start time parameter on videos
This commit is contained in:
parent
7023d0287c
commit
c811a4aaf9
@ -160,6 +160,11 @@ module.exports = [
|
||||
video.second__viewCountText = converters.viewCountToText(video.viewCount)
|
||||
}
|
||||
|
||||
// apply media fragment to all sources
|
||||
for (const format of formats) {
|
||||
format.url += mediaFragment
|
||||
}
|
||||
|
||||
// rewrite description
|
||||
video.descriptionHtml = converters.rewriteVideoDescription(video.descriptionHtml, id)
|
||||
|
||||
|
@ -25,7 +25,7 @@ block content
|
||||
- const format = formats[0]
|
||||
if format
|
||||
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag autoplay=continuous||autoplay)#video.video
|
||||
source(src=format.url+mediaFragment type=format.type)
|
||||
source(src=format.url type=format.type)
|
||||
each t in video.captions
|
||||
track(label=t.label kind="subtitles" srclang=t.languageCode src=t.url)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user