Added the subdivision and city field

This commit is contained in:
Aleksandr Statciuk 2022-01-25 05:50:41 +03:00
parent afe897c086
commit 25422cde5a
3 changed files with 25119 additions and 25113 deletions

View file

@ -15,6 +15,8 @@ https://iptv-org.github.io/api/channels.json
"id": "CNN.us", "id": "CNN.us",
"name": "CNN", "name": "CNN",
"country": "US", "country": "US",
"subdivision": null,
"city": null,
"broadcast_area": [ "broadcast_area": [
"c/US" "c/US"
], ],
@ -32,10 +34,12 @@ https://iptv-org.github.io/api/channels.json
``` ```
| Field | Description | | Field | Description |
| -------------- | -------------------------------------------------------------------------------------------------------------- | | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| id | Unique channel ID | | id | Unique channel ID |
| name | Full name of the channel | | name | Full name of the channel |
| country | Broadcast source country ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code) | | country | Country code from which the broadcast is transmitted ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)) |
| subdivision | Code of the subdivision (e.g., provinces or states) from which the broadcast is transmitted ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)) |
| city | Name of the city from which the broadcast is transmitted |
| broadcast_area | List of codes describing the broadcasting area (`r/<region_code>`, `c/<country_code>`, `s/<subdivision_code>`) | | broadcast_area | List of codes describing the broadcasting area (`r/<region_code>`, `c/<country_code>`, `s/<subdivision_code>`) |
| languages | List of [languages](database/languages.csv) broadcast | | languages | List of [languages](database/languages.csv) broadcast |
| categories | List of [categories](database/categories.csv) to which this channel belongs | | categories | List of [categories](database/categories.csv) to which this channel belongs |
@ -112,7 +116,7 @@ https://iptv-org.github.io/api/subdivisions.json
| ------- | ------------------------------------------------------------------------------------------ | | ------- | ------------------------------------------------------------------------------------------ |
| country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of the country | | country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of the country |
| name | Subdivision name | | name | Subdivision name |
| code | [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of the subdivision | | code | [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) code of the subdivision |
### Languages ### Languages

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,9 @@ const csv2jsonOptions = {
categories: listParser, categories: listParser,
broadcast_area: listParser, broadcast_area: listParser,
is_nsfw: boolParser, is_nsfw: boolParser,
logo: nullable logo: nullable,
subdivision: nullable,
city: nullable
} }
} }