From d8b7c0750a6e04176116337ddebb36b26d1525fd Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 22 Sep 2018 11:34:29 -0500 Subject: [PATCH] Fix name of playlist resource --- src/invidious.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 1cb1ca7e..6df2ee78 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2834,7 +2834,7 @@ get "/api/v1/playlists/:plid" do |env| response = JSON.build do |json| json.object do json.field "title", playlist.title - json.field "id", playlist.id + json.field "playlistId", playlist.id json.field "author", playlist.author json.field "authorId", playlist.ucid @@ -2852,7 +2852,7 @@ get "/api/v1/playlists/:plid" do |env| videos.each do |video| json.object do json.field "title", video.title - json.field "id", video.id + json.field "videoId", video.id json.field "author", video.author json.field "authorId", video.ucid