From 548ad14154af6b3d754065381a4a5866fb841270 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 26 Jul 2018 15:09:05 -0500 Subject: [PATCH] Update Video mapping --- src/invidious/helpers.cr | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index d6dba902..037a451e 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -85,32 +85,20 @@ class Video default: HTTP::Params.parse(""), converter: Video::HTTPParamConverter, }, - updated: Time, - title: String, - views: Int64, - likes: Int32, - dislikes: Int32, - wilson_score: Float64, - published: Time, - description: String, - language: String?, - author: String, - ucid: String, - allowed_regions: { - type: Array(String), - nilable: true, - default: [] of String, - }, - is_family_friendly: { - type: Bool, - nilable: true, - default: nil, - }, - genre: { - type: String, - nilable: true, - default: nil, - }, + updated: Time, + title: String, + views: Int64, + likes: Int32, + dislikes: Int32, + wilson_score: Float64, + published: Time, + description: String, + language: String?, + author: String, + ucid: String, + allowed_regions: Array(String), + is_family_friendly: Bool, + genre: String, }) end