We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83de3a5 + d12dff9 commit da10cddCopy full SHA for da10cdd
src/invidious/routes/api/v1/videos.cr
@@ -130,7 +130,13 @@ module Invidious::Routes::API::V1::Videos
130
end
131
132
else
133
+ # Some captions have "align:[start/end]" and "position:[num]%"
134
+ # attributes. Those are causing issues with VideoJS, which is unable
135
+ # to properly align the captions on the video, so we remove them.
136
+ #
137
+ # See: https://github.com/iv-org/invidious/issues/2391
138
webvtt = YT_POOL.client &.get("#{url}&format=vtt").body
139
+ .gsub(/([0-9:.]+ --> [0-9:.]+).+/, "\\1")
140
141
142
if title = env.params.query["title"]?
0 commit comments