Invidious is an alternative front-end to YouTube
Update API to match documentation
Omar Roth0f6fcf5833b1
diff --git a/src/invidious.cr b/src/invidious.crindex 4165de02..66846fdd 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -1976,7 +1976,7 @@ get "/api/v1/videos/:id" do |env|hlsvp = video.info["hlsvp"]hlsvp = hlsvp.gsub("https://manifest.googlevideo.com", host_url)- json.field "hls", hlsvp+ json.field "hlsUrl", hlsvpendjson.field "adaptiveFormats" do@@ -2167,7 +2167,7 @@ get "/api/v1/trending" do |env|json.field "author", authorjson.field "authorUrl", author_url- json.field "published", published+ json.field "published", published.epochjson.field "description", descriptionjson.field "descriptionHtml", descriptionHtmlend@@ -2448,7 +2448,7 @@ get "/api/v1/channels/:ucid/videos" do |env|json.field "descriptionHtml", descriptionHtmljson.field "viewCount", view_count- json.field "published", published+ json.field "published", published.epochjson.field "lengthSeconds", length_secondsendend