mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add 'type' field to ChannelVideo and Video
This commit is contained in:
parent
d892ba6aa5
commit
d197497349
2 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,8 @@ end
|
||||||
struct ChannelVideo
|
struct ChannelVideo
|
||||||
def to_json(locale, config, kemal_config, json : JSON::Builder)
|
def to_json(locale, config, kemal_config, json : JSON::Builder)
|
||||||
json.object do
|
json.object do
|
||||||
|
json.field "type", "shortVideo"
|
||||||
|
|
||||||
json.field "title", self.title
|
json.field "title", self.title
|
||||||
json.field "videoId", self.id
|
json.field "videoId", self.id
|
||||||
json.field "videoThumbnails" do
|
json.field "videoThumbnails" do
|
||||||
|
|
|
@ -276,6 +276,8 @@ struct Video
|
||||||
def to_json(locale, config, kemal_config, decrypt_function)
|
def to_json(locale, config, kemal_config, decrypt_function)
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
json.object do
|
json.object do
|
||||||
|
json.field "type", "video"
|
||||||
|
|
||||||
json.field "title", self.title
|
json.field "title", self.title
|
||||||
json.field "videoId", self.id
|
json.field "videoId", self.id
|
||||||
json.field "videoThumbnails" do
|
json.field "videoThumbnails" do
|
||||||
|
|
Loading…
Reference in a new issue