mirror of
https://github.com/iptv-org/database.git
synced 2024-11-21 18:42:31 -05:00
Update channels.js
This commit is contained in:
parent
dfd51a5a92
commit
a4357335ae
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
const Joi = require('joi')
|
||||
const Joi = require('joi').extend(require('@joi/date'))
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
|
@ -33,6 +33,8 @@ module.exports = {
|
|||
),
|
||||
categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)),
|
||||
is_nsfw: Joi.boolean().strict().required(),
|
||||
launched: Joi.date().format('YYYY-MM-DD').raw().allow(null),
|
||||
closed: Joi.date().format('YYYY-MM-DD').raw().allow(null),
|
||||
website: Joi.string()
|
||||
.uri({
|
||||
scheme: ['http', 'https']
|
||||
|
|
Loading…
Reference in a new issue