kopia lustrzana https://github.com/iv-org/invidious
Fix livestream parsing URLs (#2356)
rodzic
5c74196f60
commit
a279d6f433
|
@ -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/")
|
||||
|
|
Ładowanie…
Reference in New Issue