TS IPTV Source format
A TS IPTV Source is one JSON file that describes a complete, branded collection: who made it, its colours, its home screen layout, live TV and radio channels, movies, series with seasons and episodes, programme guides, and links to other playlists, guides and addons. It is open, documented on this page, and checked by a published JSON Schema.
TS IPTV includes no channels and no sources. A TS IPTV Source contains only the links its creator puts in it; TS IPTV does not list, host or recommend any. Every example on this page uses example.com placeholders, a public test stream, public-domain films from archive.org, or TS IPTV's own example files on tsiptv.web.app.
Files: JSON Schema (https://tsiptv.web.app/schema/tsiptv-source-v1.json, draft 2020-12) · examples minimal-live, vod-catalog, composed-includes · browser validator.
What it is
M3U describes a list of channels. A TS IPTV Source describes a whole collection, and how its home screen should look. Use it when you want movies and series with posters and episodes, your own sections and colours, several streams per item, or when you want to combine existing M3U playlists, XMLTV guides, Stremio-compatible addons and other sources into one.
The format follows five rules:
- Data, never code. No scripts, expressions, HTML or Markdown. Every text is plain text; TS IPTV never runs anything from a source.
- Links, not content. The file carries the links its creator supplies. The format, the schema and the app ship no content.
- Easy by hand. The smallest valid file is ten lines. Shorthands cover the common cases (
urlinstead ofstreams, a plain string instead of a translated object). - Forward compatible. Unknown fields are ignored and unknown values fall back in a defined way, so an older app keeps reading newer files. Only a breaking change raises
version. - Same meaning as M3U. Headers, DRM and catch-up mean exactly what they mean in Kodi-style M3U, so a channel plays the same in both formats.
This page is the public reference of version 1. The JSON Schema is stricter than the app, so a file that passes it is almost always accepted. The exceptions are things the schema cannot see: a file larger than 5 MiB; format placed after the first 64 KiB; impossible calendar dates such as 2026-02-30 (TS IPTV warns and ignores the field); duplicate ids and references to missing items (checked by the app and by the validator); and includes that fail or form a cycle (E_INCLUDE, E_INCLUDE_CYCLE, and E_EMPTY if nothing else is left).
Quick start
The smallest useful file: one channel that really plays (the Mux public test stream, Big Buck Bunny © Blender Foundation, CC BY 3.0).
{
"$schema": "https://tsiptv.web.app/schema/tsiptv-source-v1.json",
"format": "tsiptv-source",
"version": 1,
"id": "com.example.my-channels",
"meta": { "name": "My Channels" },
"channels": [
{ "id": "test-hls", "name": "HLS Test Channel", "url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8" }
]
}
Save it as my-channels.tsiptv.json (UTF-8), put it on any HTTPS host, and add the link in TS IPTV. The $schema line makes editors such as VS Code check the file and suggest fields as you type.
The format, part by part
The file
| Property | Rule |
|---|---|
| Encoding | UTF-8. A leading BOM is tolerated but should not be written. |
| Syntax | JSON: no comments, no trailing commas. The root is an object. |
| Detection | A file is a TS IPTV Source when its top-level "format" is "tsiptv-source". The file name and the server's content type do not matter. TS IPTV looks for format in the first 64 KiB of the file, so put it near the top (right after $schema). |
| Extension | .tsiptv.json is suggested (for example my-channels.tsiptv.json). |
| Size | At most 5 MiB after decompression, for the file itself and for every included source. |
| Compression | HTTP Content-Encoding: gzip, or a gzip-compressed file, are both accepted. |
Top level
| Field | Required | Meaning |
|---|---|---|
$schema | no | The schema URL, for editors. TS IPTV never fetches it. |
format | yes | Exactly "tsiptv-source". |
version | yes | 1. A higher number means “needs a newer TS IPTV”. |
id | yes | Stable identifier of the source, an Id. Reverse-DNS is recommended (com.example.news). The same id from the same link is an update. |
revision | no | Integer ≥ 0 that you increase when you publish a change (default 0). |
meta | yes | Metadata. |
appearance | no | Colours and card style. |
layout | no | Home screen sections. Without it, a default layout is used. |
channels | no | Live TV and radio, at most 10,000. |
movies | no | At most 5,000. |
series | no | At most 1,000 (and 20,000 episodes in total). |
epg | no | XMLTV guide links, at most 10. |
includes | no | Remote documents, at most 20. |
A file must contain at least one non-empty channels, movies, series or includes.
General rules
x-members: any field whose name starts withx-is yours (notes, tool data). TS IPTV ignores it and the format will never define one. This does not apply to header names, language keys or DRM key ids, which are data.nullis the same as leaving the field out.- Unknown fields are ignored by the app, but the schema reports them so you catch typos.
- Text is trimmed; a value that is empty after trimming is invalid. Lengths count characters (Unicode code points).
- Control characters: the schema allows none in texts, except line breaks in long texts (descriptions). TS IPTV is lenient here: a line break or control character in a one-line text is replaced by a space and reported as a warning, not an error. URLs and catch-up sources must contain none; header values allow only tab.
meta
| Field | Required | Meaning |
|---|---|---|
name | yes | Text: the source's display name. |
description | no | Long text. |
author | no | { "name" (required, 1–100), "url"?, "email"? }. |
logo | no | Square image URL, 256×256 or larger. |
homepage | no | Shown in “About this source”; TS IPTV asks before opening it. |
language | no | Language of plain-string texts and the fallback language (default en). |
languages | no | Languages of the content, for display (at most 20). |
updatedAt | no | Date-time such as 2026-09-27T10:00:00Z. |
adult | no | true if the source contains adult content. Any value that is not true or false also counts as adult. TS IPTV then warns and asks “I am 18 or older” before importing. |
license | no | Licence of the listing (not of the streams), free text or an SPDX id, up to 200 characters. |
Texts and translations
Every visible text is either a plain string, in the language of meta.language, or an object that maps language tags to strings:
"name": "Movies"
"name": { "en": "Movies", "vi": "Phim lẻ", "zh-CN": "电影" }
- Text (names, titles): 1–200 characters, one line. Long text (descriptions): 1–5,000 characters; line breaks allowed (LF, CR or CRLF).
- Language tags:
en,vi,zh-CN,pt-BR(pattern^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$); at most 30 per object. - TS IPTV picks, in order: the app's language exactly (
zh-CN), then its main language (zh, then anyzh-…), thenmeta.language, thenen, then the first entry. - Texts are shown as written: no HTML, no Markdown.
Ids, URLs, headers, colours
| Type | Rule |
|---|---|
| Id | ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$: letters, digits, ., _, -, case-sensitive, no : (the colon is reserved for included items, includeId:itemId). Every id of a channel, movie, series, episode and include must be unique in the file. The first one wins, in this order: channels, movies, series (each followed by its episodes), includes; an item that is dropped does not claim its id. |
| URL | Absolute http:// or https://, at most 2,048 characters, no spaces or control characters. Every URL in the file (streams, images, includes, licence servers) follows this rule; rtmp:, udp:, file:, data: and all other schemes are invalid. Prefer https. |
| Headers | An object of header name → value, for example { "User-Agent": "Mozilla/5.0", "Referer": "https://example.com/" }. At most 20. Values are sent exactly as written (not URL-decoded), up to 4,096 characters. Host, Content-Length, Connection and Transfer-Encoding are forbidden. Headers go with every request of the stream (manifests, segments, keys), not with the DRM licence request and not with subtitle files. |
| Colour | #RRGGBB. |
appearance
"appearance": {
"accent": "#FFB300",
"accentSecondary": "#FF7043",
"background": { "gradient": ["#101014", "#1C1C24"], "image": "https://example.com/bg.jpg", "imageDim": 0.7 },
"card": { "style": "poster", "corner": "medium", "showTitles": true }
}
| Field | Default | Meaning |
|---|---|---|
accent | app accent | Focus rings, selected chips, buttons, progress bars. |
accentSecondary | app secondary | Gradients on buttons and badges. |
background.color | app background | Solid background. |
background.gradient | none | 2–3 colours, top to bottom; replaces color. |
background.image | none | Image behind the home, under a dark scrim. |
background.imageDim | 0.6 | Scrim opacity, 0.3–1.0. |
card | { "style": "auto" } | Default card style for every section. |
Card style: style is auto, poster (2:3), landscape (16:9), square, logo (channel logo tile) or list (one line: logo, name, programme now on); auto means poster for movies and series, logo for TV, square for radio, landscape for episodes, and the item's own posterShape for items from a Stremio-compatible catalogue. corner is none, small, medium or large. showTitles hides names on cards when false (channels and lists always show them).
Legibility. TS IPTV keeps its own light text colour. If your background colour (or a gradient stop) gives a contrast below 4.5:1 with that text, TS IPTV uses its own background (a background image is kept). If the accent has a contrast below 3:1 with the background, both accents are replaced by the app's. Appearance applies to the source's home and detail pages only; the player, dialogs and settings keep the app theme.
layout: the home screen
layout.home is a list of 1–30 sections, drawn top to bottom.
"layout": {
"home": [
{ "type": "hero", "query": { "from": "movies", "limit": 5 } },
{ "type": "row", "title": { "en": "Continue watching", "vi": "Xem tiếp" }, "query": { "from": "continueWatching" } },
{ "type": "row", "title": "News", "query": { "from": "channels", "groups": ["News"] }, "card": { "style": "logo" } },
{ "type": "grid", "title": "All channels", "query": { "from": "channels", "sort": "number" }, "groupChips": true }
]
}
| Section field | Meaning |
|---|---|
type (required) | hero (banner carousel, 1–10 items), row (one horizontal line, default 20 items, at most 100) or grid (all matching items, loaded in pages). |
id | Lets TS IPTV remember the scroll and focus position of the section. |
title, subtitle | Heading and smaller line (not shown on a hero). |
query | What the section shows (required, except a hero with items). |
items | Hero only: hand-made banners { "image" (16:9, required), "title", "subtitle", "target", "autoplay" }. A hero has query or items, not both. |
card | Card style for this section (ignored by a hero). |
seeAll | Row only (default true): a “See all” action opening the whole query as a grid. |
groupChips | Grid of channels or radio only: group filter chips above the grid. |
A hero with a query uses each item's backdrop, else poster, else logo, and skips items without an image. A banner's target is the id of a channel, movie, series or episode (included items as includeId:itemId); without a target the banner is decorative. autoplay: true starts playback of the target (channels, movies and episodes only): a channel plays at once; a movie opens its detail page and an episode opens its series' detail page, and playback starts straight away, so Back returns to that page. Banners cannot open websites. A section that finds no items is not drawn.
Queries
| Query field | Meaning |
|---|---|
from (required) | channels, radio, movies, series, catalog (a catalogue of a Stremio-compatible addon include), continueWatching, favorites. |
include | Only items from the include with this id. Required for catalog, where it names the stremio include. |
catalog | For from: "catalog": { "type", "id", "genre"? } of a catalogue declared in that addon's manifest. |
ids | Only these items, in this order (1–500; included items as includeId:itemId). Unknown ids are skipped. |
groups, genres, tags | Items whose groups (channels), genres (movies, series) or tags contain any of these; case-insensitive. |
sort | source (file order; included items after your own), name, number, year, yearDesc, recent (Continue watching). |
limit | 1–500 items. |
Filters combine with AND between fields and OR inside a field. A filter that does not apply (for example genres on channels) is ignored. For catalog, only catalog.genre filters and the addon's own order is kept. continueWatching (partly watched movies and episodes, recently played channels) and favorites (favourite channels) come from the viewer's own history, never from the file; they stay hidden until they have items.
Default layout
Without layout, TS IPTV shows: Continue watching; a hero of movies (only if a movie has a backdrop); Movies; Series; Radio; and a grid of Channels sorted by number with group chips. Empty sections are left out.
Channels, movies and series
Playable fields, shared by channels, movies and episodes. An item has exactly one of url and streams:
| Field | Meaning |
|---|---|
url | One stream. Short for "streams": [{ "url": … }]. |
streams | 1–10 alternatives, best first. For a channel, TS IPTV plays the first one the device supports, and the viewer can pick another under “Stream” in the player's “Playback options” (phone: the player's settings button; TV: ▶, or the MENU, captions or Settings key). For a movie or episode, the detail page lists its streams and the viewer picks one there; its “Playback options” offer subtitles only. On TV the options open only when there is something to choose. |
headers | Headers for every stream of the item; a stream's own headers win, name by name. |
mimeType | Stream type hint for every stream. |
drm | DRM for every stream; a stream's own drm replaces it. |
Channel
{
"id": "example-news",
"name": { "en": "Example News", "vi": "Tin tức Ví dụ" },
"number": 101,
"logo": "https://example.com/logos/news.png",
"groups": ["News", "HD"],
"epgId": "ExampleNews.us",
"url": "https://cdn.example.com/news/index.m3u8",
"headers": { "Referer": "https://example.com/" },
"catchup": { "mode": "shift", "days": 3 }
}
| Field | Meaning |
|---|---|
id, name (required) | Id and Text. |
type | tv (default) or radio. |
number | 0–99,999, shown on cards and used by sort: "number". |
logo | Logo URL (transparent PNG recommended). |
groups | 0–10 group names (1–100 characters). Matched case-insensitively and shown as written; they are not translated. |
epgId | The XMLTV <channel id> of this channel. Without it, the guide is matched by name (case, accents and spaces are ignored). |
epgShiftHours | −12 … +14 hours added to this channel's guide times. |
description, tags | Long text; 0–20 tags of 1–50 characters. |
catchup | Catch-up. |
Movie
id and name are required, plus the playable fields. Optional: originalName, poster (2:3), backdrop (16:9, used by heroes and detail pages), logo (title logo), description, year (1870–2100), releaseDate (YYYY-MM-DD), runtimeMinutes (1–1,440), genres (0–10), cast (0–50), directors (0–20), countries (ISO codes such as US), languages, ageRating (as printed, for example PG-13), tags, subtitles (0–30).
Series, seasons, episodes
{
"id": "fleischer-superman",
"name": "Fleischer Superman",
"year": 1941,
"endYear": 1943,
"seasons": [
{
"number": 1,
"episodes": [
{ "id": "fleischer-superman-s1e1", "number": 1, "name": "The Mechanical Monsters",
"url": "https://archive.org/download/superman_the_mechanical_monsters/superman_the_mechanical_monsters_512kb.mp4" }
]
}
]
}
- A series has
idandname(required),originalName,poster,backdrop,logo,description,year(first year),endYear(last year, not beforeyear; absent = ongoing),genres,cast,countries,languages,ageRating,tagsandseasons(1–100). It has no playable fields, and nodirectors,releaseDate,runtimeMinutesorsubtitles. - A season has
number(0–999, unique in the series;0= Specials, listed last), optionalname,poster,description, andepisodes(1–500). - An episode has
id(unique in the whole file; used for watch progress),number(unique in the season),name, the playable fields, and optionaldescription,thumbnail(16:9),releaseDate(a future date means “upcoming”, listed but not playable),runtimeMinutes,subtitles.
Stream
| Field | Meaning |
|---|---|
url (required) | HLS .m3u8, DASH .mpd, MP4, WebM, MKV, MPEG-TS, or audio (AAC, MP3, Opus). |
name | Label in the stream picker, such as 1080p or Backup. |
headers, drm | As above; merged over, or replacing, the item's. |
mimeType | When the URL has no telling extension: application/x-mpegURL or application/vnd.apple.mpegurl (HLS), application/dash+xml, video/mp4, video/mp2t, video/webm, video/x-matroska, audio/aac, audio/mpeg, audio/ogg. |
quality, language | Badges: HD, 720p; audio language tag. |
DRM
"drm": { "system": "widevine", "licenseUrl": "https://license.example.com/widevine", "licenseHeaders": { "X-Example": "1" } }
"drm": { "system": "clearkey", "keys": { "000102030405060708090a0b0c0d0e0f": "00112233445566778899aabbccddeeff" } }
system:widevine,playready(licence URL required) orclearkey(a licence URL, orkeys: 1–20 pairs of 32-hex key id → 32-hex key).- TS IPTV sends the raw challenge to
licenseUrland expects the raw licence back;licenseHeadersgo with that request only. Wrapped or JSON licence protocols are not part of version 1. - Widevine plays on Android; PlayReady on Android devices that support it (a PlayReady CDM, mostly TVs); ClearKey on Android for DASH only. On iPhone, iPad and desktop, a channel skips streams with DRM and plays its next stream without DRM; if there is none, TS IPTV shows “This channel is DRM-protected. DRM is not supported on this device.” For a movie or episode, a stream with DRM picked on the detail page shows that same message, so give such items a stream without DRM as well.
- Publish only keys and licence servers you are entitled to share.
Catch-up
catchup uses the same modes and placeholders as Kodi M3U catch-up: { "mode", "source"?, "days"? (1–60, default 7), "correctionHours"? (−24 … +24) }. mode is default (source is a full URL template starting with http:// or https://), append (source is appended to the live URL, for example ?utc={utc}&lutc={lutc}), shift, flussonic, flussonic-ts or xc. For default and append, source is required and never trimmed: any space or control character makes it invalid (W_FIELD), the catch-up is dropped and the channel plays live only. The other modes build the URL from the live link and ignore source. TS IPTV stores catch-up information; playback of past programmes comes later.
Subtitles
{ "url" (WebVTT or SubRip), "language" (required), "label"?, "format"? ("vtt" or "srt") }. Subtitles start Off: the viewer turns one on under “Subtitles” in the player's “Playback options” (see streams). On Android, a subtitle without label shows the language name, and subtitle files are requested without the stream's headers, so host them where no token or Referer is needed. On desktop, subtitles load, but how they are labelled and whether headers are sent is not yet verified. iPhone and iPad do not show subtitles yet.
epg and includes
epg is a list of XMLTV guide links, each a URL string or { "url", "refreshHours"? } (1–720, default 24). Guides may be gzip-compressed. Programmes are matched to channels by epgId; a channel without epgId is matched by name (case, accents and spaces are ignored).
"includes": [
{ "id": "news", "type": "m3u", "url": "https://example.com/playlists/news.m3u", "name": "Partner news" },
{ "id": "guide", "type": "xmltv", "url": "https://example.com/epg/guide.xml.gz", "refreshHours": 12 },
{ "id": "sampler", "type": "stremio", "url": "https://addon.example.com/manifest.json" },
{ "id": "archive", "type": "tsiptv-source", "url": "https://example.com/archive.tsiptv.json" }
]
| Include field | Meaning |
|---|---|
id (required) | Unique Id; prefixes the included items (news:ExampleTV.us). Must not start with epg- (reserved for epg links). |
type (required) | m3u, xmltv, stremio or tsiptv-source. |
url (required) | For stremio, the manifest link ending in /manifest.json. |
name | Shown in “About this source” and in error messages. |
refreshHours | Minimum hours between automatic fetches (1–720, default 24). |
headers | Sent when fetching an m3u, xmltv or tsiptv-source document; not sent to addons or streams. |
| Type | What it adds | Item ids |
|---|---|---|
m3u | Channels (radio entries go to radio), read with TS IPTV's M3U reader including headers and DRM; its x-tvg-url guides join the guide set. | includeId: + the channel's tvg-id (or name), characters outside the Id set replaced by _: ExampleTV.us@HD → live:ExampleTV.us_HD. |
xmltv | Guide data only; cannot be used in a query. | — |
stremio | Nothing in the pools; its catalogues are shown with from: "catalog". Only url streams play (see Stremio-compatible addons). | The addon's own ids. |
tsiptv-source | Its channels, radio, movies, series and guide links. Its meta, appearance and layout are ignored. | includeId: + its item id (chains: archive:partner:item). |
- Depth and cycles: the root is depth 1; included sources may include others down to depth 3. An include of any type below depth 3, or one whose URL is already on the path, is refused (
E_INCLUDE_CYCLE). - Totals per refresh: at most 20 includes in the whole tree (guide links not counted), 50 MiB fetched (all documents including the root; a
304counts 0), and 20,000 channels, 5,000 movies and 1,000 series after merging. An M3U include may be up to 20 MiB, an XMLTV include up to 100 MiB, a TS IPTV Source include up to 5 MiB. - Failures: a failing include never fails your source. TS IPTV keeps the last good copy; without one, sections using that include are hidden.
- Adult content: if any included source has
meta.adult: true(or any value that is not a boolean), or any addon's manifest declares adult content, TS IPTV asks for the 18+ confirmation for the whole source before storing anything. If a later refresh makes a source you have not confirmed adult, the new content of the include that caused it is held back (the previous copy stays) until you confirm in “About this source”.
Limits
| What | Limit |
|---|---|
| File size | 5 MiB per document after decompression; 50 MiB per refresh for the whole tree |
| Items | 10,000 channels, 5,000 movies, 1,000 series, 20,000 episodes per document; 20,000 / 5,000 / 1,000 after merging |
| Series | 100 seasons, 500 episodes per season |
| Streams, subtitles | 10 streams per item; 30 subtitles |
| Headers | 20 per map (also after merging item and stream headers); values up to 4,096 characters |
| Layout | 30 sections; 10 hero items; query limit and ids up to 500; rows show at most 100 |
| Includes | 20 per document and in the tree; depth 3; 10 epg links per document |
| Texts | 200 characters (Text), 5,000 (long text), 30 languages per text; URLs 2,048 |
Security and privacy
- TS IPTV never runs, evaluates or renders as markup anything from a source.
- Only
httpandhttpslinks are ever opened. - A source cannot open websites, install anything or download files. Importing fetches only the file and its includes; images load when shown; streams load only when the viewer presses play.
- URLs and headers may carry tokens. TS IPTV does not send them to analytics, crash reports or its own servers, and does not log them in release builds.
- Home servers on your local network are allowed.
- Adult content always needs the 18+ confirmation (root or includes).
Versions and unknown values
New optional fields and new values are added to version 1 over time, at the same schema URL. When TS IPTV meets a value it does not know yet, it falls back instead of failing:
| Unknown value in | What happens |
|---|---|
section type, query from | The section is skipped. |
query sort | source order. |
card style / corner | auto / medium. |
channel type | Treated as tv. |
include type | The include is skipped (E_INCLUDE). |
stream mimeType | The hint is ignored. |
drm.system | The stream is never played without DRM; it is unplayable on that device. |
catchup.mode | No catch-up; live playback works. |
A change that would alter the meaning of existing files will be version 2, with a new schema (tsiptv-source-v2.json); the version 1 schema stays published.
Validation: errors and warnings
TS IPTV checks a source on three levels. Document errors reject the file. Item errors drop the item or field and import the rest. Warnings change nothing but are listed. Every problem is listed as path — CODE: explanation, for example channels[3].url — E_URL: … (the explanation is a short sentence in the app's language).
| Code | Level | When | What the viewer sees |
|---|---|---|---|
E_NOT_JSON | document | Not JSON, or the root is not an object | “This file is not valid JSON.” |
E_NOT_SOURCE | document | format missing or wrong | “This is not a TS IPTV Source file.” |
E_VERSION | document | version missing, not an integer ≥ 1, or newer than the app | “This source needs a newer version of TS IPTV.” |
E_TOO_LARGE | document | Over 5 MiB | “This source is larger than 5 MB.” |
E_ID, E_META | document | id, meta or meta.name missing or invalid | “This source is missing its id or name.” |
E_EMPTY | document | No items and no includes (or all were dropped) | “This source has nothing that TS IPTV can show.” |
E_ITEM_ID | item | Missing or invalid id; season or episode number missing or out of range; an entry that is not an object | Before import: “N items will be skipped” with Details. After import: the success message, for example “Source added: 3 channels, 1 movie, 0 series”, followed by “N items were skipped”. On refresh: counted in “About this source” (“Problems found in the last refresh: N”) and listed under “Problems found”. |
E_DUPLICATE_ID | item | Id (or season/episode number) already used | |
E_ITEM_NAME | item | Missing or invalid name | |
E_NO_STREAM | item | No url/streams, both, or no valid stream left; a series or season with nothing valid inside | |
E_INCLUDE | include | Invalid include, a rejected included source, or a failed fetch (the last good copy is kept) | |
E_INCLUDE_CYCLE | include | A cycle, or deeper than 3 | |
E_URL | field / item | Invalid URL (the stream, image or banner is dropped) | Listed under Details; not counted in “N items will be skipped”. The item stays, unless it has nothing playable left (then E_NO_STREAM). |
E_HEADER_FORBIDDEN | field | Forbidden or invalid header name; only that header is dropped | |
E_DRM | stream | Invalid DRM (missing licence URL, bad key); the stream is dropped | |
W_UNKNOWN_TYPE | warning | An unknown value was replaced by its fallback | Listed under Details; nothing is dropped except where stated. |
W_QUERY_REF | warning | A query names an unknown include or an xmltv include, a catalog query names an include that is not stremio, or the catalogue is not declared by the addon; the section is skipped | |
W_LIMIT | warning | A count limit was reached; extra items were dropped | |
W_CONTRAST | warning | A colour was replaced for legibility | |
W_TEXT | warning | A text was too long (cut); a line break or control character in a one-line text was replaced by a space; a language key was invalid, or there were more than 30 languages (those entries are ignored) | |
W_FIELD | warning | An optional field had the wrong type or range, an invalid header value, an invalid catch-up source, a broken section, or a tolerated misuse; the field is dropped |
The browser validator runs the JSON Schema and the reference checks on your file before you publish it.
Complete examples
Minimal live list
One channel that really plays, one placeholder channel with headers and a guide id, and one placeholder radio station.
{
"$schema": "https://tsiptv.web.app/schema/tsiptv-source-v1.json",
"format": "tsiptv-source",
"version": 1,
"id": "app.tsiptv.examples.minimal-live",
"meta": {
"name": "Minimal live list",
"description": "The smallest useful TS IPTV Source: one public test stream that really plays, one placeholder channel that shows how to send HTTP headers, and one placeholder radio station. Replace the example.com links with your own streams.",
"language": "en",
"updatedAt": "2026-09-27T00:00:00Z"
},
"channels": [
{
"id": "hls-test",
"name": "HLS Test Channel",
"number": 1,
"groups": ["Test"],
"description": "Mux public HLS test stream. Video: Big Buck Bunny, (c) Blender Foundation, CC BY 3.0.",
"url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"
},
{
"id": "example-news",
"name": "Example News (placeholder)",
"number": 2,
"groups": ["News"],
"logo": "https://example.com/logos/news.png",
"epgId": "ExampleNews.us",
"url": "https://cdn.example.com/news/index.m3u8",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"Referer": "https://example.com/"
}
},
{
"id": "example-radio",
"type": "radio",
"name": "Example Radio (placeholder)",
"groups": ["Radio"],
"url": "https://radio.example.com/stream.aac",
"mimeType": "audio/aac"
}
]
}
No layout, so TS IPTV uses the default: a Radio row and a Channels grid with group chips.
Movies and a series, with appearance and layout
{
"$schema": "https://tsiptv.web.app/schema/tsiptv-source-v1.json",
"format": "tsiptv-source",
"version": 1,
"id": "app.tsiptv.examples.vod-catalog",
"revision": 1,
"meta": {
"name": { "en": "Public Domain Cinema", "vi": "Rạp phim Phạm vi công cộng" },
"description": {
"en": "A small movie and series catalog built only from public-domain films on archive.org and a public test stream. It shows a custom appearance and home layout.",
"vi": "Danh mục phim và phim bộ nhỏ, chỉ gồm phim thuộc phạm vi công cộng trên archive.org và một luồng thử nghiệm công khai. Tệp này minh hoạ giao diện và bố cục trang chủ tuỳ chỉnh."
},
"author": { "name": "TS IPTV examples", "url": "https://tsiptv.web.app/guides/tsiptv-source/" },
"homepage": "https://tsiptv.web.app/guides/tsiptv-source/",
"language": "en",
"languages": ["en"],
"updatedAt": "2026-09-27T00:00:00Z",
"license": "Listing: CC0-1.0. Films: public domain (see each item)."
},
"appearance": {
"accent": "#FFB300",
"accentSecondary": "#FF7043",
"background": { "gradient": ["#101014", "#1C1C24"] },
"card": { "style": "poster", "corner": "large", "showTitles": true }
},
"layout": {
"home": [
{
"type": "hero",
"id": "featured",
"items": [
{
"image": "https://archive.org/services/img/his_girl_friday",
"title": "His Girl Friday",
"subtitle": { "en": "Screwball comedy, 1940", "vi": "Hài kịch, 1940" },
"target": "his-girl-friday"
},
{
"image": "https://archive.org/services/img/superman_the_mechanical_monsters",
"title": { "en": "Fleischer Superman", "vi": "Superman của Fleischer" },
"subtitle": { "en": "Animated shorts, 1941–1943", "vi": "Phim hoạt hình ngắn, 1941–1943" },
"target": "fleischer-superman"
}
]
},
{
"type": "row",
"id": "continue",
"title": { "en": "Continue watching", "vi": "Xem tiếp" },
"query": { "from": "continueWatching" },
"card": { "style": "landscape" }
},
{
"type": "row",
"id": "movies",
"title": { "en": "Movies", "vi": "Phim lẻ" },
"query": { "from": "movies", "sort": "yearDesc", "limit": 20 }
},
{
"type": "row",
"id": "series",
"title": { "en": "Series", "vi": "Phim bộ" },
"query": { "from": "series" }
},
{
"type": "grid",
"id": "comedy",
"title": { "en": "Comedy", "vi": "Hài" },
"query": { "from": "movies", "genres": ["Comedy"], "sort": "name" },
"card": { "style": "landscape", "corner": "small" }
}
]
},
"movies": [
{
"id": "his-girl-friday",
"name": "His Girl Friday",
"poster": "https://archive.org/services/img/his_girl_friday",
"backdrop": "https://archive.org/services/img/his_girl_friday",
"description": {
"en": "Howard Hawks' screwball comedy. Public domain (archive.org item his_girl_friday).",
"vi": "Phim hài của Howard Hawks. Thuộc phạm vi công cộng (mục his_girl_friday trên archive.org)."
},
"year": 1940,
"releaseDate": "1940-01-18",
"runtimeMinutes": 92,
"genres": ["Comedy"],
"directors": ["Howard Hawks"],
"countries": ["US"],
"languages": ["en"],
"streams": [
{
"name": { "en": "archive.org, MP4 512 kb/s", "vi": "archive.org, MP4 512 kb/s" },
"url": "https://archive.org/download/his_girl_friday/his_girl_friday_512kb.mp4",
"mimeType": "video/mp4",
"quality": "SD",
"language": "en"
}
]
},
{
"id": "big-buck-bunny",
"name": "Big Buck Bunny",
"description": {
"en": "Open movie by the Blender Foundation, CC BY 3.0, streamed from the Mux public HLS test stream.",
"vi": "Phim mở của Blender Foundation, giấy phép CC BY 3.0, phát từ luồng thử nghiệm HLS công khai của Mux."
},
"year": 2008,
"runtimeMinutes": 10,
"genres": ["Animation", "Comedy"],
"url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
"mimeType": "application/x-mpegURL"
}
],
"series": [
{
"id": "fleischer-superman",
"name": { "en": "Fleischer Superman", "vi": "Superman của Fleischer" },
"poster": "https://archive.org/services/img/superman_the_mechanical_monsters",
"backdrop": "https://archive.org/services/img/superman_the_mechanical_monsters",
"description": {
"en": "Fleischer Studios' Superman cartoons, now in the public domain.",
"vi": "Loạt phim hoạt hình Superman của Fleischer Studios, nay thuộc phạm vi công cộng."
},
"year": 1941,
"endYear": 1943,
"genres": ["Animation"],
"countries": ["US"],
"seasons": [
{
"number": 1,
"episodes": [
{
"id": "fleischer-superman-s1e1",
"number": 1,
"name": "The Mechanical Monsters",
"thumbnail": "https://archive.org/services/img/superman_the_mechanical_monsters",
"releaseDate": "1941-11-28",
"runtimeMinutes": 10,
"url": "https://archive.org/download/superman_the_mechanical_monsters/superman_the_mechanical_monsters_512kb.mp4",
"mimeType": "video/mp4"
}
]
}
]
}
]
}
- Texts in English and Vietnamese; the
appearanceuses an amber accent, a dark gradient and large-cornered posters. - The layout: a hero with two hand-made banners (
targetopens the film or the series), Continue watching, a Movies row sorted newest first, a Series row, and a Comedy grid filtered by genre with landscape cards. - His Girl Friday has one stream with a name, quality and language; Big Buck Bunny uses the
urlshorthand; the series has one season with one episode.
A source built from includes
{
"$schema": "https://tsiptv.web.app/schema/tsiptv-source-v1.json",
"format": "tsiptv-source",
"version": 1,
"id": "app.tsiptv.examples.composed",
"meta": {
"name": { "en": "Composed from includes", "vi": "Ghép từ nguồn bên ngoài" },
"description": {
"en": "This source contains no items of its own. It pulls an M3U playlist, an XMLTV guide, a Stremio addon and another TS IPTV Source, and places each one in its own section. Every include points at a TS IPTV example file with public test or public-domain streams.",
"vi": "Nguồn này không tự chứa mục nào. Nó lấy một danh sách M3U, một lịch phát sóng XMLTV, một addon Stremio và một TS IPTV Source khác, rồi đặt mỗi nguồn vào một mục riêng. Mọi nguồn đều trỏ tới tệp ví dụ của TS IPTV, chỉ chứa luồng thử nghiệm công khai hoặc phim thuộc phạm vi công cộng."
},
"author": { "name": "TS IPTV examples" },
"language": "en",
"updatedAt": "2026-09-27T00:00:00Z"
},
"appearance": {
"accent": "#4FC3F7",
"background": { "color": "#06121C" },
"card": { "style": "auto", "corner": "medium" }
},
"includes": [
{
"id": "live",
"type": "m3u",
"url": "https://tsiptv.web.app/examples/playlist.m3u",
"name": { "en": "Example M3U playlist", "vi": "Danh sách M3U ví dụ" },
"refreshHours": 24
},
{
"id": "guide",
"type": "xmltv",
"url": "https://tsiptv.web.app/examples/guide.xml",
"name": { "en": "Example XMLTV guide", "vi": "Lịch phát sóng XMLTV ví dụ" },
"refreshHours": 12
},
{
"id": "sampler",
"type": "stremio",
"url": "https://tsiptv.web.app/examples/stremio-sampler/manifest.json",
"name": { "en": "Public Domain Sampler addon", "vi": "Addon Public Domain Sampler" }
},
{
"id": "cinema",
"type": "tsiptv-source",
"url": "https://tsiptv.web.app/examples/vod-catalog.tsiptv.json",
"refreshHours": 72
}
],
"layout": {
"home": [
{
"type": "hero",
"id": "hero",
"query": { "from": "movies", "include": "cinema", "limit": 3 }
},
{
"type": "row",
"id": "on-air",
"title": { "en": "On air", "vi": "Đang phát" },
"subtitle": { "en": "From the M3U include, with the XMLTV guide", "vi": "Từ danh sách M3U, kèm lịch phát sóng XMLTV" },
"query": { "from": "channels", "include": "live", "sort": "number" },
"card": { "style": "list" }
},
{
"type": "row",
"id": "addon-movies",
"title": { "en": "From the Stremio addon", "vi": "Từ addon Stremio" },
"query": { "from": "catalog", "include": "sampler", "catalog": { "type": "movie", "id": "tspd-movie" } },
"card": { "style": "poster" }
},
{
"type": "row",
"id": "cinema-series",
"title": { "en": "Series", "vi": "Phim bộ" },
"query": { "from": "series", "include": "cinema" }
},
{
"type": "row",
"id": "picked",
"title": { "en": "Picked by hand", "vi": "Chọn tay" },
"query": { "from": "movies", "ids": ["cinema:big-buck-bunny", "cinema:his-girl-friday"] },
"card": { "style": "landscape" },
"seeAll": false
},
{
"type": "grid",
"id": "all-channels",
"title": { "en": "All channels", "vi": "Tất cả kênh" },
"query": { "from": "channels", "sort": "number" },
"groupChips": true
}
]
}
}
- No items of its own: an M3U playlist (
live), an XMLTV guide (guide), the sample addon (sampler) and the vod-catalog source above (cinema). - The hero shows movies from
cinema; “On air” lists the M3U channels as a list with the programme now on; a row shows the addon's movie catalogue;idspicks two films by their namespaced ids (cinema:big-buck-bunny); the last grid shows every channel with group chips.
Create your own, step by step
- Start from the minimal file. Download minimal-live.tsiptv.json and open it in VS Code (the
$schemaline gives you autocompletion and red underlines for mistakes). Changeidto a reverse-DNS name of your own (com.example.mytv) andmeta.name. - Add your channels. One object each, with
id,name,url, and optionallynumber,logo,groups,epgIdandheaders:Add the guide with{ "id": "news-hd", "name": "Example News HD", "number": 10, "groups": ["News"], "logo": "https://example.com/logos/news.png", "epgId": "ExampleNews.us", "url": "https://cdn.example.com/news/index.m3u8", "headers": { "User-Agent": "Mozilla/5.0", "Referer": "https://example.com/" } }"epg": ["https://example.com/guide.xml.gz"]. - Add movies and a series. Movies need
id,nameandurl(orstreams); addposter,backdrop,year,genresanddescriptionfor a good detail page. A series needsseasons→episodes, each episode with its own uniqueid, anumber, anameand aurl. - Add appearance and a layout. Pick an accent that stands out on a dark background, then list your sections:
"appearance": { "accent": "#FFB300", "card": { "style": "poster", "corner": "large" } }, "layout": { "home": [ { "type": "hero", "query": { "from": "movies", "limit": 5 } }, { "type": "row", "title": "News", "query": { "from": "channels", "groups": ["News"] }, "card": { "style": "logo" } }, { "type": "row", "title": "New movies", "query": { "from": "movies", "sort": "yearDesc" } }, { "type": "grid", "title": "All channels", "query": { "from": "channels", "sort": "number" }, "groupChips": true } ] } - Translate. Replace a plain string with
{ "en": "…", "vi": "…" }wherever you want another language, and setmeta.languageto the language of your plain strings. - Validate. Fix everything VS Code underlines, or paste the file into the validator. Check that every id is unique and has no
:. - Host it (next section), add it in TS IPTV, and read the preview: the counts, the list of servers, and any skipped items. When you publish a change later, keep the same link and
id, and increaserevision.
Already have an M3U playlist? You do not need to convert it: add it as an m3u include and place its channels with queries.
Host it
- Any static HTTPS host that returns the file itself works:
https://raw.githubusercontent.com/<user>/<repo>/<branch>/my.tsiptv.json,https://<user>.github.io/<repo>/my.tsiptv.json,https://www.example.com/my.tsiptv.json. Share pages and GitHubblob/links do not work; see hosting an M3U file. You can also skip hosting and use Import from file. - HTTPS is recommended;
httplinks work but are not encrypted. - Content type:
application/json(ortext/plain); TS IPTV detects the format by content anyway. - Compression:
Content-Encoding: gzipis welcome for large files. The 5 MiB limit applies after decompression. - Caching: TS IPTV refreshes the root like a playlist (when older than 24 hours, or on Refresh) and each include after its
refreshHours. For the file itself and for each include it sendsIf-None-Match/If-Modified-Sincewhen your server gave anETagorLast-Modified; answering304 Not Modifiedsaves bandwidth and counts 0 towards the 50 MiB budget. - CORS is not needed by TS IPTV. Add
Access-Control-Allow-Origin: *only if web tools should read the file. - Keep the link stable. The same
idfrom the same link is an update; from another link, TS IPTV asks whether to replace the existing source.
Add it in TS IPTV
- Open Add IPTV Source, paste the link into Source Link and choose Add IPTV, or choose Import from file. TS IPTV recognises the format by its content.
- The preview dialog “Add this source?” opens (nothing is stored yet): logo, name, author, description, the numbers of channels, radio, movies and series, “This source contacts these servers” (the hosts of the file and every include), “N items will be skipped” with Details (opens “Import details”) if some entries are invalid, the notice that the source was made by a third party, and the checkbox “I am 18 or older” if the source is marked adult.
- Choose Import. TS IPTV loads the includes (“Loading 2 of 4…”). If an include turns out to be adult, it asks again (“Part of this source’s content comes from a source or addon that says it contains adult content.” with “I am 18 or older”); Cancel stores nothing. Then it stores everything, shows for example “Source added: 3 channels, 1 movie, 0 series” (and “N items were skipped” if any) and opens the source's home. On phones, the Home tab has Home (your layout) and Channels (the usual channel list); on TV the rail starts with Home.
- Search, Continue watching and favourites work inside the source. About this source (phone: the Source Home menu; TV: a rail item) shows the author; Homepage, which asks “Open … in your browser?” (on a TV without a browser the link is shown as text); each include's status (“Up to date”, “Couldn’t refresh — showing the copy from …”, “Couldn’t load”, or “Held back until 18+ is confirmed” with Confirm); the last refresh with “Problems found in the last refresh: N” and Details (“Problems found”); Refresh and Remove source.
- If refreshing the file itself fails, About adds “Last attempt: …”; after a Refresh you start, Home also shows “Couldn’t refresh this source. The saved copy is shown.”. TS IPTV tries again on the normal schedule.
If the file has a document error, TS IPTV shows “Can’t add this source” with the message from the table above and a Details action with the code and path. If every include fails and the file has no items of its own, it shows “None of this source’s content could be loaded. Try again later.”
Common mistakes
| Mistake | Symptom | Fix |
|---|---|---|
url and streams on the same item | Item skipped (E_NO_STREAM) | Use one: url for a single stream, streams for alternatives. |
: in an id (news:hd) | Item skipped (E_ITEM_ID; for an include, E_INCLUDE) | Use -, _ or .; the colon is reserved for included items. |
| The same id twice (also across channels, movies, episodes and includes) | The second is skipped (E_DUPLICATE_ID) | Make every id unique in the file. |
rtmp://, rtsp:// or udp:// streams | The stream is dropped (E_URL); an item whose only stream it was is skipped (E_NO_STREAM) | Only http(s) is allowed here. Put such channels in an M3U playlist and add it as an m3u include; whether they play then depends on each platform's player. |
A hero with both items and query | items are used (W_FIELD) | Keep one. |
groupChips on a movies grid or a row | No chips | Group chips work on grids of channels or radio only. |
| Low-contrast colours (a light background, a dark accent) | Your colours are replaced (W_CONTRAST) | Use a dark background and an accent with at least 3:1 contrast against it. |
A query on an include id that does not exist, or on an xmltv include | Section not shown (W_QUERY_REF) | Use the include's exact id; guides cannot be sections. |
A misspelt field (nmae) | Ignored by the app; the required field is then missing | Use the $schema line or the validator; they report unknown fields. |
| Comments or trailing commas | “This file is not valid JSON.” | Remove them; use x- fields for notes. |
http:// images on hosts that redirect or block them | Missing posters | Use https image URLs. |
An include id starting with epg- | Include dropped (E_INCLUDE) | That prefix is reserved for epg links. |
A stremio include URL without /manifest.json | Include dropped (E_INCLUDE) | Use the addon's manifest link. |
Spaces in a catch-up source (default or append mode) | Catch-up dropped, channel plays live (W_FIELD) | Encode spaces as %20. |
What TS IPTV supports
| Feature | Android | iOS | Desktop |
|---|---|---|---|
| Import by link or file, preview, layout, appearance, search, Continue watching | Supported | Not yet verified | Supported |
| Channels, radio, movies, series; several streams per item (channels: “Playback options”; movies and episodes: the detail page) | Supported | Not yet verified | Supported |
| Headers | All headers | Not yet verified | User-Agent and Referer only |
DASH .mpd streams without DRM | Supported | Not yet verified through the built-in VLC player; only the User-Agent and Referer headers are sent | Supported |
| DRM (Widevine, PlayReady; ClearKey for DASH) | Android only | Not supported | Not supported |
| Subtitles (VTT, SRT), off by default | Supported | Not yet | Not yet verified |
Includes: m3u, xmltv, stremio, tsiptv-source | Supported Stremio-compatible addons play url streams only. | ||
| Catch-up | Stored, playback coming later | ||
| Links that open websites from banners | Not part of the format | ||
iOS: TS IPTV Source support has not yet been built or tested on iPhone and iPad, so those cells say “Not yet verified”. DRM is not available on iOS by design. DASH streams without DRM play on iPhone and iPad through the built-in VLC player, which sends only the User-Agent and Referer headers; DASH with DRM is not supported there. Desktop: the features marked “Supported” are built, but the desktop app has not yet been tested with TS IPTV Sources; its subtitles are “Not yet verified”.