v0.1.1: external modules, publish YAML, proxy reset, binary-first README
All checks were successful
release / build-and-upload (push) Successful in 6m8s
modules-release / build-and-upload (push) Successful in 4m47s

- Host discovers/builds modules under modules/ (bbc, rte, tg4)
- module-publish.yaml tracked; local module.yaml gitignored
- drm --modules-dir / DRM_MODULES_DIR
- drm proxy reset; Magisk reinject reliability
- modules-v* Forgejo release workflow + build scripts
- BBC full Explore channel map including S4C
- README quickstart based on release binaries
This commit is contained in:
404errordeveloper 2026-10-08 23:16:14 +02:00
parent 1d36961a7c
commit f9c28be3f1
52 changed files with 2915 additions and 636 deletions

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

@ -0,0 +1,15 @@
module null-drm/modules/rte
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/rte/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=

170
modules/rte/main.go Normal file
View file

@ -0,0 +1,170 @@
// Command rte is the external RTÉ Player provider module.
package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/modcfg"
"drmdecryption/modhost"
"drmdecryption/modules/rte"
)
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, `rte — Null DRM external module (RTÉ Player)
Usage:
rte describe
rte launch [--serial SERIAL]
rte autoplay --channel ID [--serial SERIAL]
rte catalog --channel ID [--json]
`)
}
func loadApp() (appreg.App, error) {
return rte.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: false,
Rewriter: "rte",
ValuesPath: modcfg.Path(a.Name()),
}
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")
asJSON := 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
}
cat, ok := a.(appreg.Catalog)
if !ok {
return fmt.Errorf("rte module has no catalog — use phone capture")
}
info, err := cat.Resolve(*channel)
if err != nil {
return err
}
if *asJSON {
return json.NewEncoder(os.Stdout).Encode(info)
}
fmt.Printf("mpd: %s\n", info.MPD)
return nil
}

View file

@ -0,0 +1,60 @@
# RTE Player — published universal values (renamed to module.yaml in release zips).
# Fill secrets in local module.yaml: license_url, origins, kids (never commit that file).
package: air.RTE.OSMF.Minimal
proxy_bin: bin/proxy-android-arm64
# SENSITIVE — set in local module.yaml:
# license_url: "https://…"
score:
hosts:
- live.rte.ie
- dai.google.com
deny:
- feed.entertainment
aliases:
rte1: rteone
one: rteone
rte2: rtetwo
two: rtetwo
jr: rtejr
news: rtenews
newsnow: rtenews
channels:
rteone:
label: RTE One
chip_desc: ["^rteone$"]
play_desc: ["play\\s*rteone"]
rtetwo:
label: RTE 2
chip_desc: ["^rte2$"]
play_desc: ["play\\s*rte2"]
rtejr:
label: RTE jr
chip_desc: ["^rtejr$"]
play_desc: ["play\\s*rte\\s*jr", "play\\s*rtejr"]
rtenews:
label: RTE News Now
chip_desc: ["^rtenewsnow$", "^rtenews$"]
play_desc: ["play\\s*rtenews", "play\\s*rtenewsnow"]
# SENSITIVE — set in local module.yaml:
# origins:
# vc11: "https://…"
# vc12: "https://…"
# kids:
# vc11: "…"
# vc12: "…"
ui:
launch_desc_contains: ["live tab", "header logo", "Live"]
live_tab_desc_re: ["Live tab", "Live"]
timeouts:
launch_wait_ui: 30s
launch_settle: 4s
live_tab: 30s
playback: 45s