Live Sources

A standalone LiveConfig uses lives at the top level and supports spider, headers, proxy, rules, hosts, ads, urls and msg; it does not read a separate doh. The table below covers the Live source objects inside lives[].

url and groups are usually mutually exclusive; when groups is empty but api is set, the App first calls the spider's liveContent(url) for text and lets LiveParser decide the format.

Warning

Saved boot, pass and keep values for a configuration with the same name may override configuration values; check the saved settings in the App as well.

Fields

FieldTypeRequiredDefaultNotes
namestringyes—Unique live configuration name.
urlstringno—External TXT, M3U or JSON list location; mutually exclusive with groups.
apistringno—When groups is empty, use this spider's liveContent(url) to obtain the external list text.
extstring | object | arrayno—Initialization data for the live spider; objects and arrays are serialized first.
jarstringno—JAR dedicated to this live configuration.
clickstringno—Default JavaScript click handler run in the WebView.
logostringno—Default logo template; supports {id}, {name}, {logo}.
epgstringno—EPG location, comma separated; supports XMLTV and API templates.
uastringno—Default User-Agent.
originstringno—Default Origin header.
refererstringno—Default Referer header.
timeZonestringnosystem zoneEPG time zone, for example Asia/Taipei.
keepstringno—Saved channel positioning; usually maintained by the App.
timeoutintegerno15Playback timeout in seconds, minimum 1.
headerobjectno—Additional HTTP headers for live requests.
catchupCatchupno—Default catch-up settings for channels from external lists; inline groups must set it per channel.
coreCoreno—Advanced initialization for special playback cores.
groupsGroup[]no—Inline channel groups.
bootbooleannofalseWhen the selected live configuration is true, entering live TV automatically after loading.
passbooleannofalseWhen true, do not parse the _suffix of TXT/M3U group names as a password; explicit Group.pass in JSON is unaffected.

Loading an external list

live-config.json

{
  "lives": [
    {
      "name": "M3U sample",
      "url": "./live.m3u",
      "epg": "https://example.com/epg.xml",
      "logo": "https://example.com/logo/{id}.png",
      "ua": "ExampleClient/1.0",
      "timeZone": "Asia/Taipei",
      "boot": false
    }
  ]
}

This is a complete LiveConfig with a lives array; url points at an M3U, TXT or JSON file you can maintain separately.

Inline Group / Channel

live-config.json

{
  "lives": [
    {
      "name": "Inline JSON sample",
      "groups": [
        {
          "name": "News",
          "channel": [
            {
              "name": "Sample Channel 1",
              "number": "1",
              "tvgId": "demo-1",
              "urls": [
                "https://example.com/live/main.m3u8$main",
                "https://example.com/live/backup.m3u8$backup"
              ],
              "header": { "Referer": "https://example.com/" }
            }
          ]
        }
      ]
    }
  ]
}

$main and $backup are line labels; a channel may expose several locations. Inline groups skip the automatic numbering and default inheritance of external lists, so set the fields a channel needs explicitly.

Comparing the two approaches

ItemExternal urlInline groups
MaintenanceList file maintained separatelySame file as the configuration
Default inheritanceInherits logo, ua, catchup from LiveMust be set on each Channel
Automatic numberingFilled inNot applied
FormatsTXT, M3U, JSONJSON

See the three live list formats for format details and Group / Channel for channel fields.