mirror of
https://github.com/iptv-org/database.git
synced 2024-11-22 02:44:10 -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')
|
const path = require('path')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -33,6 +33,8 @@ module.exports = {
|
||||||
),
|
),
|
||||||
categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)),
|
categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)),
|
||||||
is_nsfw: Joi.boolean().strict().required(),
|
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()
|
website: Joi.string()
|
||||||
.uri({
|
.uri({
|
||||||
scheme: ['http', 'https']
|
scheme: ['http', 'https']
|
||||||
|
|
Loading…
Reference in a new issue