Skip to content

Commit b417ea8

Browse files
authored
Merge pull request #2923 from iv-org/SamantazFox-patch-1
Fix captions regex
2 parents 505a81d + b58b044 commit b417ea8

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)