Add field for authorVerified for recommended videos when using the API

This commit is contained in:
ChunkyProgrammer 2024-04-04 20:20:27 -04:00
parent 08390acd0c
commit 2a029b4d8c

View file

@ -227,6 +227,7 @@ module Invidious::JSONify::APIv1
json.field "author", rv["author"] json.field "author", rv["author"]
json.field "authorUrl", "/channel/#{rv["ucid"]?}" json.field "authorUrl", "/channel/#{rv["ucid"]?}"
json.field "authorId", rv["ucid"]? json.field "authorId", rv["ucid"]?
json.field "authorVerified", rv["author_verified"]
if rv["author_thumbnail"]? if rv["author_thumbnail"]?
json.field "authorThumbnails" do json.field "authorThumbnails" do
json.array do json.array do