Merge branch 'master' into pr/5

This commit is contained in:
Aleksandr Statciuk 2022-02-20 05:12:59 +03:00
commit 4bad897060
3 changed files with 1139 additions and 1174 deletions

View file

@ -26,7 +26,7 @@ All data is stored in the [/data](data) folder as [CSV](https://en.wikipedia.org
| languages | List of languages in which the channel is broadcast separated by `;`. A list of all supported languages and their codes can be found in [data/languages.csv](data/languages.csv) | Required | `eng;spa` | | languages | List of languages in which the channel is broadcast separated by `;`. A list of all supported languages and their codes can be found in [data/languages.csv](data/languages.csv) | Required | `eng;spa` |
| categories | List of categories to which this channel belongs separated by `;`. A list of all supported categories can be found in [data/categories.csv](data/categories.csv) | Optional | `news;weather` | | categories | List of categories to which this channel belongs separated by `;`. A list of all supported categories can be found in [data/categories.csv](data/categories.csv) | Optional | `news;weather` |
| is_nsfw | Indicates whether the channel broadcasts adult content (`TRUE` or `FALSE`) | Required | `FALSE` | | is_nsfw | Indicates whether the channel broadcasts adult content (`TRUE` or `FALSE`) | Required | `FALSE` |
| logo | Logo URL | Optional | `https://example.com/nbc.png` | | logo | Logo URL. Only URL with HTTPS protocol are allowed. | Optional | `https://example.com/nbc.png` |
### categories ### categories

File diff suppressed because it is too large Load diff

View file

@ -29,5 +29,9 @@ 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(),
logo: Joi.string().uri().allow(null) logo: Joi.string()
.uri({
scheme: ['https']
})
.allow(null)
} }