mirror of
https://github.com/iptv-org/database.git
synced 2024-11-26 04:21:26 -05:00
commit
1474da8b44
6 changed files with 30523 additions and 30506 deletions
8
.github/ISSUE_TEMPLATE/channels_add.yml
vendored
8
.github/ISSUE_TEMPLATE/channels_add.yml
vendored
|
@ -26,9 +26,15 @@ body:
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Network (optional)
|
label: Network (optional)
|
||||||
description: Network of which this channel is a part.
|
description: Network of which this channel is a part. May contain any characters except `,` and `"`.
|
||||||
placeholder: 'Anhui'
|
placeholder: 'Anhui'
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Owners (optional)
|
||||||
|
description: List of channel owners separated by `;`. May contain any characters except `,` and `"`.
|
||||||
|
placeholder: 'China Central Television'
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Country
|
label: Country
|
||||||
|
|
8
.github/ISSUE_TEMPLATE/channels_edit.yml
vendored
8
.github/ISSUE_TEMPLATE/channels_edit.yml
vendored
|
@ -32,9 +32,15 @@ body:
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Network
|
label: Network
|
||||||
description: Network of which this channel is a part.
|
description: Network of which this channel is a part. May contain any characters except `,` and `"`.
|
||||||
placeholder: 'Anhui'
|
placeholder: 'Anhui'
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Owners
|
||||||
|
description: List of channel owners separated by `;`. May contain any characters except `,` and `"`.
|
||||||
|
placeholder: 'China Central Television'
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Country
|
label: Country
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
| id | Unique channel ID derived from the `name` and `country` separated by dot. May only contain Latin letters, numbers and dot. | Required | `AnhuiTV.cn` |
|
| id | Unique channel ID derived from the `name` and `country` separated by dot. May only contain Latin letters, numbers and dot. | Required | `AnhuiTV.cn` |
|
||||||
| name | Official channel name in English. May include: `a-z`, `à-ÿ`, `0-9`, `space`, `-`, `!`, `:`, `&`, `.`, `+`, `'`, `/`, `»`, `#`, `%`, `°`, `$`, `@`, `?`, `(`, `)`. | Required | `Anhui TV` |
|
| name | Official channel name in English. May include: `a-z`, `à-ÿ`, `0-9`, `space`, `-`, `!`, `:`, `&`, `.`, `+`, `'`, `/`, `»`, `#`, `%`, `°`, `$`, `@`, `?`, `(`, `)`. | Required | `Anhui TV` |
|
||||||
| native_name | Channel name in the original language. Used when different from `name`. May contain any characters except `,` and `"`. | Optional | `安徽卫视` |
|
| native_name | Channel name in the original language. Used when different from `name`. May contain any characters except `,` and `"`. | Optional | `安徽卫视` |
|
||||||
| network | Network of which this channel is a part. | Optional | `Anhui` |
|
| network | Network of which this channel is a part. May contain any characters except `,` and `"`. | Optional | `Anhui` |
|
||||||
|
| owners | List of channel owners separated by `;`. May contain any characters except `,` and `"`. | Optional | `China Central Television` |
|
||||||
| country | Country code from which the channel is transmitted. A list of all supported countries and their codes can be found in [data/countries.csv](data/countries.csv) | Required | `CN` |
|
| country | Country code from which the channel is transmitted. A list of all supported countries and their codes can be found in [data/countries.csv](data/countries.csv) | Required | `CN` |
|
||||||
| subdivision | Code of the subdivision (e.g., provinces or states) from which the broadcast is transmitted. A list of all supported subdivisions and their codes can be found in [data/subdivisions.csv](data/subdivisions.csv). | Optional | `CN-AH` |
|
| subdivision | Code of the subdivision (e.g., provinces or states) from which the broadcast is transmitted. A list of all supported subdivisions and their codes can be found in [data/subdivisions.csv](data/subdivisions.csv). | Optional | `CN-AH` |
|
||||||
| city | Name of the city from which the channel is transmitted. May only contain `a-z`, `à-ÿ`, `0-9`, `space`, `-`, `'`. | Optional | `Hefei` |
|
| city | Name of the city from which the channel is transmitted. May only contain `a-z`, `à-ÿ`, `0-9`, `space`, `-`, `'`. | Optional | `Hefei` |
|
||||||
|
|
61004
data/channels.csv
61004
data/channels.csv
File diff suppressed because it is too large
Load diff
|
@ -23,6 +23,7 @@ const csv2jsonOptions = {
|
||||||
subdivision: nullable,
|
subdivision: nullable,
|
||||||
city: nullable,
|
city: nullable,
|
||||||
network: nullable,
|
network: nullable,
|
||||||
|
owners: listParser,
|
||||||
launched: nullable,
|
launched: nullable,
|
||||||
closed: nullable,
|
closed: nullable,
|
||||||
website: nullable,
|
website: nullable,
|
||||||
|
|
|
@ -12,7 +12,10 @@ module.exports = {
|
||||||
.regex(/^[^",]+$/)
|
.regex(/^[^",]+$/)
|
||||||
.invalid(Joi.ref('name'))
|
.invalid(Joi.ref('name'))
|
||||||
.allow(null),
|
.allow(null),
|
||||||
network: Joi.string().allow(null),
|
network: Joi.string()
|
||||||
|
.regex(/^[^",]+$/)
|
||||||
|
.allow(null),
|
||||||
|
owners: Joi.array().items(Joi.string().regex(/^[^",]+$/)),
|
||||||
country: Joi.string()
|
country: Joi.string()
|
||||||
.regex(/^[A-Z]{2}$/)
|
.regex(/^[A-Z]{2}$/)
|
||||||
.required(),
|
.required(),
|
||||||
|
|
Loading…
Reference in a new issue