mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-20 04:24:22 -04:00
Fix paths for 'local=true&raw=1'
This commit is contained in:
parent
46e985b306
commit
11ff40bcd6
1 changed files with 4 additions and 4 deletions
|
@ -405,8 +405,8 @@ get "/watch" do |env|
|
||||||
adaptive_fmts = video.adaptive_fmts(decrypt_function)
|
adaptive_fmts = video.adaptive_fmts(decrypt_function)
|
||||||
|
|
||||||
if params[:local]
|
if params[:local]
|
||||||
fmt_stream.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).query.not_nil! }
|
fmt_stream.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).full_path }
|
||||||
adaptive_fmts.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).query.not_nil! }
|
adaptive_fmts.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).full_path }
|
||||||
end
|
end
|
||||||
|
|
||||||
video_streams = video.video_streams(adaptive_fmts)
|
video_streams = video.video_streams(adaptive_fmts)
|
||||||
|
@ -511,8 +511,8 @@ get "/embed/:id" do |env|
|
||||||
adaptive_fmts = video.adaptive_fmts(decrypt_function)
|
adaptive_fmts = video.adaptive_fmts(decrypt_function)
|
||||||
|
|
||||||
if params[:local]
|
if params[:local]
|
||||||
fmt_stream.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).query.not_nil! }
|
fmt_stream.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).full_path }
|
||||||
adaptive_fmts.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).query.not_nil! }
|
adaptive_fmts.each { |fmt| fmt["url"] = URI.parse(fmt["url"]).full_path }
|
||||||
end
|
end
|
||||||
|
|
||||||
video_streams = video.video_streams(adaptive_fmts)
|
video_streams = video.video_streams(adaptive_fmts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue