From 898b768b306f4a60d4fe8549affe713a6162c185 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 25 Jan 2019 12:26:16 -0600 Subject: [PATCH] Fallback on ucid for channel search when author contains hyphen --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 69b825ce..5bd20e13 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2192,7 +2192,7 @@ get "/channel/:ucid" do |env| end if !auto_generated - if author.includes? " " + if author.includes?(" ") || author.includes?("-") env.set "search", "channel:#{ucid} " else env.set "search", "channel:#{author.downcase} "