summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-05-29 19:19:24 -0500
committerOmar Roth <omarroth@hotmail.com>2018-05-29 19:19:24 -0500
commit471f5345e2eda823f2260146037fc889eed0043f (patch)
treed0710fbf41059af67c804df7acafd822c6151c79
parent61cd13578089eb812ca06e1bb41403f45aa94a0c (diff)
downloadinvidious-471f5345e2eda823f2260146037fc889eed0043f.tar.gz
invidious-471f5345e2eda823f2260146037fc889eed0043f.tar.bz2
invidious-471f5345e2eda823f2260146037fc889eed0043f.zip
Remove local links for video playback
-rw-r--r--src/invidious.cr4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 917928e2..1af54dd2 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -283,9 +283,6 @@ get "/watch" do |env|
fmt_stream.each { |s| s.add("label", "#{s["quality"]} - #{s["type"].split(";")[0].split("/")[1]}") }
fmt_stream = fmt_stream.uniq { |s| s["label"] }
- fmt_stream.each do |stream|
- stream["url"] = URI.parse(stream["url"]).full_path
- end
adaptive_fmts = [] of HTTP::Params
if video.info.has_key?("adaptive_fmts")
@@ -308,7 +305,6 @@ get "/watch" do |env|
audio_streams.sort_by! { |s| s["bitrate"].to_i }.reverse!
audio_streams.each do |stream|
stream["bitrate"] = (stream["bitrate"].to_f64/1000).to_i.to_s
- stream["url"] = URI.parse(stream["url"]).full_path
end
rvs = [] of Hash(String, String)