mirror of https://github.com/iv-org/invidious.git
API: Replace any URL in HLS manifests
This commit is contained in:
parent
aa33d9b7ec
commit
e7a93fcc18
|
@ -170,7 +170,7 @@ module Invidious::Routes::API::Manifest
|
|||
manifest = response.body
|
||||
|
||||
if local
|
||||
manifest = manifest.gsub(/^https:\/\/\w+---.{11}\.c\.youtube\.com[^\n]*/m) do |match|
|
||||
manifest = manifest.gsub(/https:\/\/[^\n"]*/m) do |match|
|
||||
uri = URI.parse(match)
|
||||
path = uri.path
|
||||
|
||||
|
|
Loading…
Reference in New Issue