Skip to content

Commit

Permalink
Fix livestream parsing URLs (iv-org#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox authored Aug 26, 2021
1 parent 5c74196 commit a279d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invidious.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down

0 comments on commit a279d6f

Please sign in to comment.