mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Add 'type' field to ChannelVideo and Video
This commit is contained in:
		| @@ -11,6 +11,8 @@ end | ||||
| struct ChannelVideo | ||||
|   def to_json(locale, config, kemal_config, json : JSON::Builder) | ||||
|     json.object do | ||||
|       json.field "type", "shortVideo" | ||||
|  | ||||
|       json.field "title", self.title | ||||
|       json.field "videoId", self.id | ||||
|       json.field "videoThumbnails" do | ||||
|   | ||||
| @@ -276,6 +276,8 @@ struct Video | ||||
|   def to_json(locale, config, kemal_config, decrypt_function) | ||||
|     JSON.build do |json| | ||||
|       json.object do | ||||
|         json.field "type", "video" | ||||
|  | ||||
|         json.field "title", self.title | ||||
|         json.field "videoId", self.id | ||||
|         json.field "videoThumbnails" do | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth