mirror of
https://github.com/iptv-org/api.git
synced 2025-05-13 02:20:07 -04:00
Added the subdivision and city field
This commit is contained in:
parent
afe897c086
commit
25422cde5a
3 changed files with 25119 additions and 25113 deletions
26
README.md
26
README.md
|
@ -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"
|
||||||
],
|
],
|
||||||
|
@ -31,16 +33,18 @@ 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)) |
|
||||||
| broadcast_area | List of codes describing the broadcasting area (`r/<region_code>`, `c/<country_code>`, `s/<subdivision_code>`) |
|
| 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)) |
|
||||||
| languages | List of [languages](database/languages.csv) broadcast |
|
| city | Name of the city from which the broadcast is transmitted |
|
||||||
| categories | List of [categories](database/categories.csv) to which this channel belongs |
|
| broadcast_area | List of codes describing the broadcasting area (`r/<region_code>`, `c/<country_code>`, `s/<subdivision_code>`) |
|
||||||
| is_nsfw | Indicates whether the channel broadcasts adult content |
|
| languages | List of [languages](database/languages.csv) broadcast |
|
||||||
| logo | Logo URL |
|
| categories | List of [categories](database/categories.csv) to which this channel belongs |
|
||||||
|
| is_nsfw | Indicates whether the channel broadcasts adult content |
|
||||||
|
| logo | Logo URL |
|
||||||
|
|
||||||
### Categories
|
### Categories
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
50202
database/channels.csv
50202
database/channels.csv
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue