From c8a798e13c65f9740d9473207c9edbba1b0afe3a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 14 Mar 2018 18:05:19 -0500 Subject: [PATCH] Add fix for streams --- src/invidious.cr | 2 ++ 1 file changed, 2 insertions(+) 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")