summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-14 18:05:19 -0500
committerOmar Roth <omarroth@hotmail.com>2018-03-14 18:05:19 -0500
commitc8a798e13c65f9740d9473207c9edbba1b0afe3a (patch)
tree9e5a0fa4190c3355c41bc875954de00ef192f492
parentf78854896150a5deea8afbb7f7983090f97ba715 (diff)
downloadinvidious-c8a798e13c65f9740d9473207c9edbba1b0afe3a.tar.gz
invidious-c8a798e13c65f9740d9473207c9edbba1b0afe3a.tar.bz2
invidious-c8a798e13c65f9740d9473207c9edbba1b0afe3a.zip
Add fix for streams
-rw-r--r--src/invidious.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index b660d873..2a1df33b 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -186,8 +186,10 @@ get "/watch" do |env|
fmt_stream = [] of HTTP::Params
video.info["url_encoded_fmt_stream_map"].split(",") do |string|
+ if !string.empty?
fmt_stream << HTTP::Params.parse(string)
end
+ end
adaptive_fmts = [] of HTTP::Params
if video.info.has_key?("adaptive_fmts")