mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-09 19:10:34 +05:30
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
|
manifest = response.body
|
||||||
|
|
||||||
if local
|
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)
|
uri = URI.parse(match)
|
||||||
path = uri.path
|
path = uri.path
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user