mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix captions regex
This commit is contained in:
parent
505a81d087
commit
b58b0440d6
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue