From a95958f9f63ad8a32a3156638406b5881c17b9e6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 30 May 2019 20:47:04 -0500 Subject: [PATCH] Fix videoplayback when encountering redirector URLs --- src/invidious.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 7ff3fb3d..e89448e4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4951,7 +4951,8 @@ get "/videoplayback" do |env| query_params = env.params.query fvip = query_params["fvip"]? || "3" - mns = query_params["mn"].split(",") + mns = query_params["mn"]?.try &.split(",") + mns ||= [] of String if query_params["region"]? region = query_params["region"]