From 0b0036813f388db32ba4460a7e49c59cafb34d38 Mon Sep 17 00:00:00 2001 From: syeopite Date: Wed, 21 Jul 2021 20:54:50 -0700 Subject: [PATCH] Remove deprecated APIs - insights - top feed --- src/invidious.cr | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index c940dadf..fe7ab769 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1922,11 +1922,6 @@ get "/api/v1/comments/:id" do |env| end end -get "/api/v1/insights/:id" do |env| - locale = LOCALES[env.get("preferences").as(Preferences).locale]? - next error_json(410, "YouTube has removed publicly available analytics.") -end - get "/api/v1/annotations/:id" do |env| locale = LOCALES[env.get("preferences").as(Preferences).locale]? @@ -2066,14 +2061,6 @@ get "/api/v1/popular" do |env| end end -get "/api/v1/top" do |env| - locale = LOCALES[env.get("preferences").as(Preferences).locale]? - - env.response.content_type = "application/json" - env.response.status_code = 400 - {"error" => "The Top feed has been removed from Invidious."}.to_json -end - get "/api/v1/channels/:ucid" do |env| locale = LOCALES[env.get("preferences").as(Preferences).locale]?