Add ITVX module, transparent mitm_hosts, and DM Telegram announces.
All checks were successful
release / build-and-upload (push) Successful in 6m21s

Wire module mitm_hosts into StartTransparent for ITVX capture, ship the
itv provider stub with Live-list autoplay, refresh the README, and send
Forgejo release announces to private chat 7314901602.
This commit is contained in:
404errordeveloper 2026-10-09 17:35:53 +02:00
parent 3cb259c9b6
commit 2e43e6c3fa
23 changed files with 996 additions and 84 deletions

View file

@ -11,6 +11,7 @@ modules/
.bin/bbc.exe # built on demand
rte/
tg4/
itv/ # ITVX stub (phone capture; UK geo)
```
## Config files
@ -34,7 +35,7 @@ DRM_MODULES_DIR=D:\mods drm capture --app rte --channel rteone
## Releases
Push a `modules-v*` tag to publish per-module zips (`bbc.zip`, `rte.zip`, `tg4.zip`) via
Push a `modules-v*` tag to publish per-module zips (`bbc.zip`, `rte.zip`, `tg4.zip`, `itv.zip`) via
Forgejo Actions. Host `drm` stays on separate `v*` tags.
Requires Go on PATH to build from source. Release zips may ship `.bin/` prebuilt.

15
modules/itv/go.mod Normal file
View file

@ -0,0 +1,15 @@
module null-drm/modules/itv
go 1.25.0
require (
drmdecryption v0.0.0
drmdecryption/modules v0.0.0
)
require gopkg.in/yaml.v3 v3.0.1 // indirect
replace (
drmdecryption => ../../apps/pkg
drmdecryption/modules => ../../apps/modules
)

4
modules/itv/go.sum Normal file
View file

@ -0,0 +1,4 @@
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

165
modules/itv/main.go Normal file
View file

@ -0,0 +1,165 @@
// Command itv is the external ITVX provider module (stub).
// Built on demand by the drm host: modules/itv/.bin/itv[.exe]
package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/modcfg"
"drmdecryption/modhost"
"drmdecryption/modules/itv"
)
func main() {
if len(os.Args) < 2 {
usage()
os.Exit(2)
}
cmd, args := os.Args[1], os.Args[2:]
var err error
switch cmd {
case "describe":
err = cmdDescribe()
case "launch":
err = cmdLaunch(args)
case "autoplay":
err = cmdAutoplay(args)
case "catalog":
err = cmdCatalog(args)
case "help", "-h", "--help":
usage()
return
default:
usage()
err = fmt.Errorf("unknown command %q", cmd)
}
if err != nil {
fmt.Fprintln(os.Stderr, "[!]", err)
os.Exit(1)
}
}
func usage() {
fmt.Fprint(os.Stderr, `itv — Null DRM external module (ITVX, stub)
Usage:
itv describe
itv launch [--serial SERIAL]
itv autoplay --channel ID [--serial SERIAL]
itv catalog --channel ID [--json]
`)
}
func loadApp() (appreg.App, error) {
return itv.New()
}
func cmdDescribe() error {
a, err := loadApp()
if err != nil {
return err
}
d := modhost.Describe{
Protocol: modhost.ProtocolVersion,
Name: a.Name(),
Package: a.Package(),
LicenseURL: a.LicenseURL(),
KeyMode: a.KeyMode(),
ProxyBin: a.ProxyBin(),
CAHash: a.CAHash(),
TransparentMITM: true,
Rewriter: "none",
ValuesPath: modcfg.Path(a.Name()),
}
if mh, ok := a.(appreg.MitmHostList); ok {
d.MitmHosts = mh.MitmHosts()
}
if sd, ok := a.(appreg.StreamDefaults); ok {
d.Rewriter = sd.RewriterName()
}
type loaded interface {
ConfigLoaded() bool
ConfigPath() string
}
if L, ok := a.(loaded); ok {
d.ValuesLoaded = L.ConfigLoaded()
if L.ConfigPath() != "" {
d.ValuesPath = L.ConfigPath()
}
}
if _, ok := a.(appreg.Catalog); ok {
d.HasCatalog = true
}
h := a.CaptureHints()
d.Require = h.Require
d.Score = h.Score
for _, ch := range a.Channels() {
d.Channels = append(d.Channels, modhost.Channel{ID: ch.ID, Label: ch.Label})
}
enc := json.NewEncoder(os.Stdout)
enc.SetIndent("", " ")
return enc.Encode(d)
}
func cmdLaunch(args []string) error {
fs := flag.NewFlagSet("launch", flag.ContinueOnError)
serial := fs.String("serial", "", "adb device serial")
if err := fs.Parse(args); err != nil {
return err
}
a, err := loadApp()
if err != nil {
return err
}
c := adb.New()
if *serial != "" {
c = c.WithSerial(*serial)
}
return a.Launch(c)
}
func cmdAutoplay(args []string) error {
fs := flag.NewFlagSet("autoplay", flag.ContinueOnError)
serial := fs.String("serial", "", "adb device serial")
channel := fs.String("channel", "", "channel id")
if err := fs.Parse(args); err != nil {
return err
}
if *channel == "" {
return fmt.Errorf("--channel is required")
}
a, err := loadApp()
if err != nil {
return err
}
c := adb.New()
if *serial != "" {
c = c.WithSerial(*serial)
}
return a.AutoPlay(c, *channel)
}
func cmdCatalog(args []string) error {
fs := flag.NewFlagSet("catalog", flag.ContinueOnError)
channel := fs.String("channel", "", "channel id")
_ = fs.Bool("json", false, "print JSON")
if err := fs.Parse(args); err != nil {
return err
}
if *channel == "" {
return fmt.Errorf("--channel is required")
}
a, err := loadApp()
if err != nil {
return err
}
if _, ok := a.(appreg.Catalog); !ok {
return fmt.Errorf("itv module has no catalog — use phone capture (UK geo)")
}
return fmt.Errorf("itv module has no catalog — use phone capture (UK geo)")
}

View file

@ -0,0 +1,90 @@
# ITVX — published universal values (renamed to module.yaml in release zips).
# Fill secrets in local module.yaml: license_url, origins, kids (never commit that file).
# Stub: Live UI matchers are best-effort; tune after a UK-geo phone session.
package: air.ITVMobilePlayer
proxy_bin: bin/proxy-android-arm64
# SENSITIVE — set in local module.yaml:
# license_url: "https://…"
# Transparent mode only MITMs open.live by default. Force decrypt of ITVX
# playlist / license / simulcast hosts observed in phone traffic (suffix match).
# Segment CDNs (akamai.content) stay passthrough so playback is less likely to break.
mitm_hosts:
- play.dar.itv.com
- itvpnp.live.ott.irdeto.com
- simulcast.itv.com
- secure.pes.itv.com
- cpt.itv.com
- tom.itv.com
score:
hosts:
- play.dar.itv.com
- itvpnp.live.ott.irdeto.com
- simulcast.itv.com
- content.itv.com
- itv.com
- itvstatic.com
- irdeto.com
deny:
- google-analytics
- googletagmanager
- doubleclick
- scorecardresearch
- facebook.com
- crashlytics
- launchdarkly
- 2cnt.net
- appsflyer
aliases:
one: itv1
itv: itv1
two: itv2
three: itv3
four: itv4
be: itvbe
citv: itvxkids
channels:
itv1:
label: ITV1
# Live list rows: "Expand ITV1 info button" / "Collapse ITV1 info button"
chip_desc: ["(?i)(Expand|Collapse)\\s+ITV1\\s+info button"]
play_desc: ["(?i)^WATCH LIVE$", "(?i)Watch\\s+ITV1\\s+on full screen"]
itv2:
label: ITV2
chip_desc: ["(?i)(Expand|Collapse)\\s+ITV2\\s+info button"]
play_desc: ["(?i)^WATCH LIVE$", "(?i)Watch\\s+ITV2\\s+on full screen"]
itv3:
label: ITV3
chip_desc: ["(?i)(Expand|Collapse)\\s+ITV3\\s+info button"]
play_desc: ["(?i)^WATCH LIVE$", "(?i)Watch\\s+ITV3\\s+on full screen"]
itv4:
label: ITV4
chip_desc: ["(?i)(Expand|Collapse)\\s+ITV4\\s+info button"]
play_desc: ["(?i)^WATCH LIVE$", "(?i)Watch\\s+ITV4\\s+on full screen"]
itvbe:
label: ITVBe
chip_desc: ["(?i)(Expand|Collapse)\\s+ITVBe\\s+info button"]
play_desc: ["(?i)^WATCH LIVE$", "(?i)Watch\\s+ITVBe\\s+on full screen"]
ui:
launch_desc_contains: ["Home", "Lyve", "Live", "Categories", "ITVX"]
live_tab: ["Lyve", "Live"]
live_tab_desc_re: ["^Lyve$"]
live_tab_text_re: ["^Live$"]
watch_live: ["WATCH LIVE", "Watch live", "Watch Live"]
playback_desc_contains: ["Unmute", "on full screen", "Pause"]
channel_scroll_max: 14
timeouts:
launch_wait_ui: 30s
launch_settle: 5s
live_nav: 20s
channel_find: 45s
after_channel: 3s
watch_live: 20s
playback: 60s