mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
API: add authorVerified where possible + provide channel tabs list (#3625)
This commit is contained in:
commit
27ff8d7c33
2 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,7 @@ struct SearchVideo
|
|||
json.field "author", self.author
|
||||
json.field "authorId", self.ucid
|
||||
json.field "authorUrl", "/channel/#{self.ucid}"
|
||||
json.field "authorVerified", self.author_verified
|
||||
|
||||
json.field "videoThumbnails" do
|
||||
Invidious::JSONify::APIv1.thumbnails(json, self.id)
|
||||
|
|
|
@ -89,6 +89,8 @@ module Invidious::Routes::API::V1::Channels
|
|||
json.field "descriptionHtml", channel.description_html
|
||||
|
||||
json.field "allowedRegions", channel.allowed_regions
|
||||
json.field "tabs", channel.tabs
|
||||
json.field "authorVerified", channel.verified
|
||||
|
||||
json.field "latestVideos" do
|
||||
json.array do
|
||||
|
|
Loading…
Reference in a new issue