summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-26 15:09:05 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-26 15:09:05 -0500
commit548ad14154af6b3d754065381a4a5866fb841270 (patch)
tree186b6f1836d4ee5ed8ac08efbb0ce88ad36a5f88 /src
parent09a93644278b10916451e879dcc24f02785c790f (diff)
downloadinvidious-548ad14154af6b3d754065381a4a5866fb841270.tar.gz
invidious-548ad14154af6b3d754065381a4a5866fb841270.tar.bz2
invidious-548ad14154af6b3d754065381a4a5866fb841270.zip
Update Video mapping
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers.cr40
1 files 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