Skip to content

Commit b58b044

Browse files
authored
Fix captions regex
1 parent 505a81d commit b58b044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invidious/routes/api/v1/videos.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ module Invidious::Routes::API::V1::Videos
136136
#
137137
# See: https://github.com/iv-org/invidious/issues/2391
138138
webvtt = YT_POOL.client &.get("#{url}&format=vtt").body
139-
.gsub(/([0-9:.]+ --> [0-9:.]+).+/, "\\1")
139+
.gsub(/([0-9:.]{12} --> [0-9:.]{12}).+/, "\\1")
140140
end
141141

142142
if title = env.params.query["title"]?

0 commit comments

Comments
 (0)