1
0
Fork 0
mirror of https://github.com/iv-org/invidious.git synced 2025-08-20 20:08:52 -04:00

Fix livestream parsing URLs ()

This commit is contained in:
Émilien Devos 2021-08-26 21:02:26 +00:00 committed by GitHub
parent 5c74196f60
commit a279d6f433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/")