TS IPTV

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:

  1. Data, never code. No scripts, expressions, HTML or Markdown. Every text is plain text; TS IPTV never runs anything from a source.
  2. Links, not content. The file carries the links its creator supplies. The format, the schema and the app ship no content.
  3. Easy by hand. The smallest valid file is ten lines. Shorthands cover the common cases (url instead of streams, a plain string instead of a translated object).
  4. 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.
  5. 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

PropertyRule
EncodingUTF-8. A leading BOM is tolerated but should not be written.
SyntaxJSON: no comments, no trailing commas. The root is an object.
DetectionA 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).
SizeAt most 5 MiB after decompression, for the file itself and for every included source.
CompressionHTTP Content-Encoding: gzip, or a gzip-compressed file, are both accepted.

Top level

FieldRequiredMeaning
$schemanoThe schema URL, for editors. TS IPTV never fetches it.
formatyesExactly "tsiptv-source".
versionyes1. A higher number means “needs a newer TS IPTV”.
idyesStable identifier of the source, an Id. Reverse-DNS is recommended (com.example.news). The same id from the same link is an update.
revisionnoInteger ≥ 0 that you increase when you publish a change (default 0).
metayesMetadata.
appearancenoColours and card style.
layoutnoHome screen sections. Without it, a default layout is used.
channelsnoLive TV and radio, at most 10,000.
moviesnoAt most 5,000.
seriesnoAt most 1,000 (and 20,000 episodes in total).
epgnoXMLTV guide links, at most 10.
includesnoRemote documents, at most 20.

A file must contain at least one non-empty channels, movies, series or includes.

General rules

meta

FieldRequiredMeaning
nameyesText: the source's display name.
descriptionnoLong text.
authorno{ "name" (required, 1–100), "url"?, "email"? }.
logonoSquare image URL, 256×256 or larger.
homepagenoShown in “About this source”; TS IPTV asks before opening it.
languagenoLanguage of plain-string texts and the fallback language (default en).
languagesnoLanguages of the content, for display (at most 20).
updatedAtnoDate-time such as 2026-09-27T10:00:00Z.
adultnotrue 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.
licensenoLicence 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": "电影" }

Ids, URLs, headers, colours

TypeRule
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.
URLAbsolute 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.
HeadersAn 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 }
}
FieldDefaultMeaning
accentapp accentFocus rings, selected chips, buttons, progress bars.
accentSecondaryapp secondaryGradients on buttons and badges.
background.colorapp backgroundSolid background.
background.gradientnone2–3 colours, top to bottom; replaces color.
background.imagenoneImage behind the home, under a dark scrim.
background.imageDim0.6Scrim 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 fieldMeaning
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).
idLets TS IPTV remember the scroll and focus position of the section.
title, subtitleHeading and smaller line (not shown on a hero).
queryWhat the section shows (required, except a hero with items).
itemsHero only: hand-made banners { "image" (16:9, required), "title", "subtitle", "target", "autoplay" }. A hero has query or items, not both.
cardCard style for this section (ignored by a hero).
seeAllRow only (default true): a “See all” action opening the whole query as a grid.
groupChipsGrid 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 fieldMeaning
from (required)channels, radio, movies, series, catalog (a catalogue of a Stremio-compatible addon include), continueWatching, favorites.
includeOnly items from the include with this id. Required for catalog, where it names the stremio include.
catalogFor from: "catalog": { "type", "id", "genre"? } of a catalogue declared in that addon's manifest.
idsOnly these items, in this order (1–500; included items as includeId:itemId). Unknown ids are skipped.
groups, genres, tagsItems whose groups (channels), genres (movies, series) or tags contain any of these; case-insensitive.
sortsource (file order; included items after your own), name, number, year, yearDesc, recent (Continue watching).
limit1–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:

FieldMeaning
urlOne stream. Short for "streams": [{ "url": … }].
streams1–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.
headersHeaders for every stream of the item; a stream's own headers win, name by name.
mimeTypeStream type hint for every stream.
drmDRM 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 }
}
FieldMeaning
id, name (required)Id and Text.
typetv (default) or radio.
number0–99,999, shown on cards and used by sort: "number".
logoLogo URL (transparent PNG recommended).
groups0–10 group names (1–100 characters). Matched case-insensitively and shown as written; they are not translated.
epgIdThe 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, tagsLong text; 0–20 tags of 1–50 characters.
catchupCatch-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" }
      ]
    }
  ]
}

Stream

FieldMeaning
url (required)HLS .m3u8, DASH .mpd, MP4, WebM, MKV, MPEG-TS, or audio (AAC, MP3, Opus).
nameLabel in the stream picker, such as 1080p or Backup.
headers, drmAs above; merged over, or replacing, the item's.
mimeTypeWhen 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, languageBadges: 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" } }

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 fieldMeaning
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.
nameShown in “About this source” and in error messages.
refreshHoursMinimum hours between automatic fetches (1–720, default 24).
headersSent when fetching an m3u, xmltv or tsiptv-source document; not sent to addons or streams.
TypeWhat it addsItem ids
m3uChannels (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.
xmltvGuide data only; cannot be used in a query.—
stremioNothing in the pools; its catalogues are shown with from: "catalog". Only url streams play (see Stremio-compatible addons).The addon's own ids.
tsiptv-sourceIts channels, radio, movies, series and guide links. Its meta, appearance and layout are ignored.includeId: + its item id (chains: archive:partner:item).

Limits

WhatLimit
File size5 MiB per document after decompression; 50 MiB per refresh for the whole tree
Items10,000 channels, 5,000 movies, 1,000 series, 20,000 episodes per document; 20,000 / 5,000 / 1,000 after merging
Series100 seasons, 500 episodes per season
Streams, subtitles10 streams per item; 30 subtitles
Headers20 per map (also after merging item and stream headers); values up to 4,096 characters
Layout30 sections; 10 hero items; query limit and ids up to 500; rows show at most 100
Includes20 per document and in the tree; depth 3; 10 epg links per document
Texts200 characters (Text), 5,000 (long text), 30 languages per text; URLs 2,048

Security and privacy

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 inWhat happens
section type, query fromThe section is skipped.
query sortsource order.
card style / cornerauto / medium.
channel typeTreated as tv.
include typeThe include is skipped (E_INCLUDE).
stream mimeTypeThe hint is ignored.
drm.systemThe stream is never played without DRM; it is unplayable on that device.
catchup.modeNo 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).

CodeLevelWhenWhat the viewer sees
E_NOT_JSONdocumentNot JSON, or the root is not an object“This file is not valid JSON.”
E_NOT_SOURCEdocumentformat missing or wrong“This is not a TS IPTV Source file.”
E_VERSIONdocumentversion missing, not an integer ≥ 1, or newer than the app“This source needs a newer version of TS IPTV.”
E_TOO_LARGEdocumentOver 5 MiB“This source is larger than 5 MB.”
E_ID, E_METAdocumentid, meta or meta.name missing or invalid“This source is missing its id or name.”
E_EMPTYdocumentNo items and no includes (or all were dropped)“This source has nothing that TS IPTV can show.”
E_ITEM_IDitemMissing or invalid id; season or episode number missing or out of range; an entry that is not an objectBefore 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_IDitemId (or season/episode number) already used
E_ITEM_NAMEitemMissing or invalid name
E_NO_STREAMitemNo url/streams, both, or no valid stream left; a series or season with nothing valid inside
E_INCLUDEincludeInvalid include, a rejected included source, or a failed fetch (the last good copy is kept)
E_INCLUDE_CYCLEincludeA cycle, or deeper than 3
E_URLfield / itemInvalid 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_FORBIDDENfieldForbidden or invalid header name; only that header is dropped
E_DRMstreamInvalid DRM (missing licence URL, bad key); the stream is dropped
W_UNKNOWN_TYPEwarningAn unknown value was replaced by its fallbackListed under Details; nothing is dropped except where stated.
W_QUERY_REFwarningA 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_LIMITwarningA count limit was reached; extra items were dropped
W_CONTRASTwarningA colour was replaced for legibility
W_TEXTwarningA 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_FIELDwarningAn 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"
            }
          ]
        }
      ]
    }
  ]
}

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
      }
    ]
  }
}

Create your own, step by step

  1. Start from the minimal file. Download minimal-live.tsiptv.json and open it in VS Code (the $schema line gives you autocompletion and red underlines for mistakes). Change id to a reverse-DNS name of your own (com.example.mytv) and meta.name.
  2. Add your channels. One object each, with id, name, url, and optionally number, logo, groups, epgId and headers:
    { "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/" } }
    Add the guide with "epg": ["https://example.com/guide.xml.gz"].
  3. Add movies and a series. Movies need id, name and url (or streams); add poster, backdrop, year, genres and description for a good detail page. A series needs seasons → episodes, each episode with its own unique id, a number, a name and a url.
  4. 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 }
    ] }
  5. Translate. Replace a plain string with { "en": "…", "vi": "…" } wherever you want another language, and set meta.language to the language of your plain strings.
  6. Validate. Fix everything VS Code underlines, or paste the file into the validator. Check that every id is unique and has no :.
  7. 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 increase revision.

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

Add it in TS IPTV

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

MistakeSymptomFix
url and streams on the same itemItem 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:// streamsThe 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 queryitems are used (W_FIELD)Keep one.
groupChips on a movies grid or a rowNo chipsGroup 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 includeSection 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 missingUse 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 themMissing postersUse 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.jsonInclude 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

FeatureAndroidiOSDesktop
Import by link or file, preview, layout, appearance, search, Continue watchingSupportedNot yet verifiedSupported
Channels, radio, movies, series; several streams per item (channels: “Playback options”; movies and episodes: the detail page)SupportedNot yet verifiedSupported
HeadersAll headersNot yet verifiedUser-Agent and Referer only
DASH .mpd streams without DRMSupportedNot yet verified through the built-in VLC player; only the User-Agent and Referer headers are sentSupported
DRM (Widevine, PlayReady; ClearKey for DASH)Android onlyNot supportedNot supported
Subtitles (VTT, SRT), off by defaultSupportedNot yetNot yet verified
Includes: m3u, xmltv, stremio, tsiptv-sourceSupported Stremio-compatible addons play url streams only.
Catch-upStored, playback coming later
Links that open websites from bannersNot 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”.