mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-18 12:14:32 -05:00
Merge pull request #2923 from iv-org/SamantazFox-patch-1
Fix captions regex
This commit is contained in:
commit
b417ea8e3a
@ -136,7 +136,7 @@ module Invidious::Routes::API::V1::Videos
|
||||
#
|
||||
# See: https://github.com/iv-org/invidious/issues/2391
|
||||
webvtt = YT_POOL.client &.get("#{url}&format=vtt").body
|
||||
.gsub(/([0-9:.]+ --> [0-9:.]+).+/, "\\1")
|
||||
.gsub(/([0-9:.]{12} --> [0-9:.]{12}).+/, "\\1")
|
||||
end
|
||||
|
||||
if title = env.params.query["title"]?
|
||||
|
Loading…
Reference in New Issue
Block a user