mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix livestream regex regression caused by #2271
Closes #2352 Special thanks to @WaywardHeart for finding this issue!
This commit is contained in:
parent
d97e128dc0
commit
6d68fbc31d
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ module Invidious::Routes::API::Manifest
|
||||||
manifest = response.body
|
manifest = response.body
|
||||||
|
|
||||||
if local
|
if local
|
||||||
manifest = manifest.gsub(/^https:\/\/r\d---.{11}\.c\.youtube\.com[^\n]*/m) do |match|
|
manifest = manifest.gsub(/^https:\/\/\w+---.{11}\.c\.youtube\.com[^\n]*/m) do |match|
|
||||||
path = URI.parse(match).path
|
path = URI.parse(match).path
|
||||||
|
|
||||||
path = path.lchop("/videoplayback/")
|
path = path.lchop("/videoplayback/")
|
||||||
|
|
Loading…
Reference in a new issue