From 920463f2ff04f4e749db5bf8d0607c7bfe4fb5eb Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 10 Apr 2020 11:49:18 -0500 Subject: [PATCH] Fix playlist_ajax --- src/invidious.cr | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 55974e4a..754d1513 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1216,10 +1216,6 @@ post "/playlist_ajax" do |env| error_message = {"error" => "Playlist cannot have more than 500 videos"}.to_json next error_message end - else - error_message = {"error" => "Unsupported action #{action}"}.to_json - env.response.status_code = 400 - next error_message end video_id = env.params.query["video_id"]