description: Top-level VodConfig fields: sites, parsing, live TV, DNS, proxies, rules and headers.

Vod Top Level

headers, proxy, rules and doh accept object arrays, URLs of external JSON arrays, or a mix of both.

FieldTypeRequiredNotes
urlsDepot[]noConfiguration depot; every entry is registered and the first is loaded, the list cannot be empty.
msgstringnoError message from the configuration; presence stops loading, for plain configurations and depots alike.
spiderstringnoGlobal Spider JAR path or URL; used when a Site has no jar.
wallpaperstringnoWallpaper image, GIF or video location.
logostringnoApp logo image location.
noticestringnoNotice text shown after launch.
sitesSite[]yesVOD site list.
parsesParse[]noParsing rules used when a URL needs further handling.
livesLive[]noInline live configurations; a separate LiveConfig can also be loaded.
dohDoh[]noDNS over HTTPS endpoints.
proxyProxy[]noProxies applied by host.
rulesRule[]noWebView network capture and script rules.
headersHeader[]noInject or override HTTP request headers by host.
hostsstring[]noDNS overrides in original=target host or IP form.
flagsstring[]noGlobal platform flags passed to playerContent.
adsstring[]noHost names to intercept.
danmakustringnoDanmaku search API; supports {name} and {episode}.
assrtstringnoAccess string for the subtitle search service.

Configuration depot

depot.json

{
  "urls": [
    { "name": "Local configuration", "url": "./vod.json" },
    { "name": "Remote configuration", "url": "https://example.com/vod.json" }
  ]
}

When urls appears at the top level, the App registers the list and loads the first configuration; the list cannot be empty and each entry has name and url.

Fields that accept external arrays

VodConfig top-level fragment

{
  "doh": "./doh.json",
  "headers": [
    "./headers.json",
    {
      "host": "media.example.com",
      "header": { "Referer": "https://example.com/" }
    }
  ],
  "proxy": "./proxy.json",
  "rules": [
    "./rules.json",
    {
      "name": "Media rule sample",
      "hosts": ["player.example.com"],
      "regex": [".*m3u8.*"],
      "exclude": [".*preview.*"]
    }
  ]
}

A whole field can be a single location, or an array mixing external JSON locations with inline objects. The external file itself must return a JSON array.

Tip

The smallest usable configuration only needs sites. Every other field can be omitted until you need it.