mirror of
https://github.com/iptv-org/database.git
synced 2024-11-22 10:54:11 -05:00
commit
832afc1d8f
7 changed files with 1051 additions and 1050 deletions
6
.github/ISSUE_TEMPLATE/channels_add.yml
vendored
6
.github/ISSUE_TEMPLATE/channels_add.yml
vendored
|
@ -12,15 +12,15 @@ body:
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Channel Name
|
label: Channel Name
|
||||||
description: Official channel name in English
|
description: Official channel name in English or call sign. May include: `a-z`, `0-9`, `space`, `-`, `!`, `:`, `&`, `.`, `+`, `'`, `/`, `»`, `#`, `%`, `°`, `$`, `@`, `?`, `(`, `)`
|
||||||
placeholder: 'Anhui TV'
|
placeholder: 'Anhui TV'
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Native Name (optional)
|
label: Alternative Names (optional)
|
||||||
description: Channel name in the original language. Used when different from `name`. May contain any characters except `,` and `"`
|
description: List of alternative channel names separated by `;`. May contain any characters except `,` and `"`
|
||||||
placeholder: '安徽卫视'
|
placeholder: '安徽卫视'
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
|
|
6
.github/ISSUE_TEMPLATE/channels_edit.yml
vendored
6
.github/ISSUE_TEMPLATE/channels_edit.yml
vendored
|
@ -20,13 +20,13 @@ body:
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Channel Name
|
label: Channel Name
|
||||||
description: Official channel name in English
|
description: Official channel name in English or call sign. May include: `a-z`, `0-9`, `space`, `-`, `!`, `:`, `&`, `.`, `+`, `'`, `/`, `»`, `#`, `%`, `°`, `$`, `@`, `?`, `(`, `)`
|
||||||
placeholder: 'Anhui TV'
|
placeholder: 'Anhui TV'
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Native Name
|
label: Alternative Names (optional)
|
||||||
description: Channel name in the original language. Used when different from `name`. May contain any characters except `,` and `"`
|
description: List of alternative channel names separated by `;`. May contain any characters except `,` and `"`
|
||||||
placeholder: '安徽卫视'
|
placeholder: '安徽卫视'
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 494 KiB |
|
@ -22,8 +22,8 @@
|
||||||
| Field | Description | Required | Example |
|
| Field | Description | Required | Example |
|
||||||
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------ |
|
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------ |
|
||||||
| 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 or call sign. 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 | `安徽卫视` |
|
| alt_names | List of alternative channel names separated by `;`. May contain any characters except `,` and `"`. | Optional | `安徽卫视` |
|
||||||
| network | Network of which this channel is a part. May contain any characters except `,` and `"`. | 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` |
|
| 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` |
|
||||||
|
|
2054
data/channels.csv
2054
data/channels.csv
File diff suppressed because it is too large
Load diff
|
@ -14,21 +14,21 @@ const csv2jsonOptions = {
|
||||||
delimiter: ',',
|
delimiter: ',',
|
||||||
eol: '\r\n',
|
eol: '\r\n',
|
||||||
colParser: {
|
colParser: {
|
||||||
countries: listParser,
|
alt_names: listParser,
|
||||||
languages: listParser,
|
|
||||||
categories: listParser,
|
|
||||||
broadcast_area: listParser,
|
|
||||||
is_nsfw: boolParser,
|
|
||||||
logo: nullable,
|
|
||||||
subdivision: nullable,
|
|
||||||
city: nullable,
|
|
||||||
network: nullable,
|
network: nullable,
|
||||||
owners: listParser,
|
owners: listParser,
|
||||||
|
subdivision: nullable,
|
||||||
|
city: nullable,
|
||||||
|
broadcast_area: listParser,
|
||||||
|
languages: listParser,
|
||||||
|
categories: listParser,
|
||||||
|
is_nsfw: boolParser,
|
||||||
launched: nullable,
|
launched: nullable,
|
||||||
closed: nullable,
|
closed: nullable,
|
||||||
|
replaced_by: nullable,
|
||||||
website: nullable,
|
website: nullable,
|
||||||
native_name: nullable,
|
logo: nullable,
|
||||||
replaced_by: nullable
|
countries: listParser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,13 @@ module.exports = {
|
||||||
.regex(/^[A-Za-z0-9]+\.[a-z]{2}$/)
|
.regex(/^[A-Za-z0-9]+\.[a-z]{2}$/)
|
||||||
.required(),
|
.required(),
|
||||||
name: Joi.string()
|
name: Joi.string()
|
||||||
.regex(/^[\sa-z\u00C0-\u00FF0-9-čâộăšİ!:&.+'/»#%°$@?()¡]+$/i)
|
.regex(/^[a-z0-9-!:&.+'/»#%°$@?()\s]+$/i)
|
||||||
.required(),
|
.required(),
|
||||||
native_name: Joi.string()
|
alt_names: Joi.array().items(
|
||||||
|
Joi.string()
|
||||||
.regex(/^[^",]+$/)
|
.regex(/^[^",]+$/)
|
||||||
.invalid(Joi.ref('name'))
|
.invalid(Joi.ref('name'))
|
||||||
.allow(null),
|
),
|
||||||
network: Joi.string()
|
network: Joi.string()
|
||||||
.regex(/^[^",]+$/)
|
.regex(/^[^",]+$/)
|
||||||
.allow(null),
|
.allow(null),
|
||||||
|
|
Loading…
Reference in a new issue