mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-10 09:07:48 +01:00
Fix livestream parsing URLs (#2356)
This commit is contained in:
parent
5c74196f60
commit
a279d6f433
1 changed files with 1 additions and 1 deletions
|
@ -3150,7 +3150,7 @@ get "/api/manifest/hls_playlist/*" do |env|
|
|||
manifest = response.body
|
||||
|
||||
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 = path.lchop("/videoplayback/")
|
||||
|
|
Loading…
Reference in a new issue