Émilien Devos
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/invidious.cr
|
|
@ -3150,7 +3150,7 @@ get "/api/manifest/hls_playlist/*" do |env| |
|
|
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/") |
|
|
|