Getting started

Channels and IDs

How a channel is identified here, how editions, renames and closures are handled, and which other IDs are kept.

Our channel ID

ch_1r840gxdj5

ch_ followed by 10 random characters (digits and lowercase letters, without i, l, o and u, which are easy to confuse). It is made here when the channel is added, by a script, never chosen by a person.

It never changes and is never reused. A channel renamed, moved to another country, or taken from another source keeps its ID, and so the address of its logo. Store this ID, not the name.

It carries no meaning on purpose: a name, a country or a project's ID can change, a random ID has no reason to.

The slug

A readable name, unique, made from the channel's name and country: france-3.fr, bfmtv-lyon.fr, tf1-2.fr for a second channel of the same name. It is shown on the website and accepted by the search and the API, but it changes when the channel is renamed: never use it as a key.

The fields of a channel

id
string required
Our channel ID, e.g. ch_1r840gxdj5.
slug
string required
Readable name, e.g. france-3.fr (may change on a rename).
name
string required
The name shown on air or on the channel's website.
aliases
string[]
Its other names (former names, short names, names in other languages).
country
string required
Two-letter code of the country it is broadcast in, lowercase (uk for the United Kingdom).
status
active | closed | merged required
active; closed when the channel stopped; merged when it became another channel of this database (then parent is that channel).
parent
string
For an edition, the ID of its main channel. For a merged channel, the ID of the channel it became.
website
string
The channel's own website, used to check the channel and to find its current logo.

Editions

An edition is a regional or local version of a channel: France 3 Alsace is an edition of France 3. It has its own ID and its parent is the main channel.

Its own logo when it differs

An edition whose logo shows its region (France 3 Alsace written under the brand) gets its own logo.

An edition without a logo of its own uses its channel's. channels.json writes it out for you (logo_from names the channel it comes from).

Renamed, closed, merged

What happensHere
The channel is renamedSame ID, same logo address; name and slug follow.
Its iptv-org ID changesSame ID; the new iptv-org ID is mapped to it, the old one is kept as a former ID.
It stopsstatus: closed; its logo stays available.
It becomes another channel already listedstatus: merged, parent = the channel it became.
It gets a new brandingSame address, new image; updated in logos.json changes.

Other projects' IDs

Two other IDs are kept with each channel, when it has them:

iptv-org

France3.fr, or France3.fr@Alsace for an edition (a "feed" there). The shared list of TV channels used by many playlists and guides. Its new, renamed and closed channels are followed every night; a renamed one keeps our ID.

Wikidata

Q…: the entry of the channel in Wikidata, a stable ID, also used to find the official logo and its dates.

TV guide IDs are not stored here: the guides and their link to our channels are kept by the epg repository, see TV guides.