streamd: preview quality picker, dashboard polish, C4 wrap keys
All checks were successful
release / build-and-upload (push) Successful in 6m18s
modules-release / build-and-upload (push) Successful in 5m18s

- Preview player can select FHD/HD/SD (or ABR master) from publish links
- Embed dashboard screenshots in README; Linux streamd+agent setup guide
- C4 Widevine wrap license mode + require --wvd; prefer Widevine PSSH
- Channel 4 and My5 modules; streamd auth, variants, schedules, HLS gate
This commit is contained in:
404errordeveloper 2026-10-09 20:57:43 +02:00
parent b3955bd81e
commit 066e018749
113 changed files with 19002 additions and 1541 deletions

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

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

169
modules/my5/main.go Normal file
View file

@ -0,0 +1,169 @@
// Command my5 is the external Channel 5 (My5 / "5") provider module.
// Built on demand by the drm host: modules/my5/.bin/my5[.exe]
package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/modcfg"
"drmdecryption/modhost"
"drmdecryption/modules/my5"
)
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, `my5 — Null DRM external module (Channel 5 / My5 / "5")
Usage:
my5 describe
my5 launch [--serial SERIAL]
my5 autoplay --channel ID [--serial SERIAL]
my5 catalog --channel ID [--json]
`)
}
func loadApp() (appreg.App, error) {
return my5.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
// Prefer substrings refined after first captures; safe defaults for now.
d.ChannelMPDPrefer = map[string][]string{
"channel5": {"channel5"},
"5usa": {"5usa", "usa"},
"5star": {"5star"},
"5action": {"5action"},
"5select": {"5select"},
}
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")
}
if _, err := loadApp(); err != nil {
return err
}
return fmt.Errorf("my5 module has no catalog — use phone capture (UK geo)")
}

View file

@ -0,0 +1,118 @@
# Channel 5 (My5 / "5") — published universal values (renamed to module.yaml in release zips).
# Live TV left-rail logos have no accessibility text; selection uses logo_index (0-based).
package: com.mobileiq.demand5
proxy_bin: bin/proxy-android-arm64
# SENSITIVE — set in local module.yaml after capture:
# license_url: "https://cassie.channel5.com/api/v2/licences/widevine/…"
# Transparent mode only MITMs open.live by default. Force My5 playlist / license hosts.
mitm_hosts:
- channel5.com
- corona.channel5.com
- cassie.channel5.com
- cassie-auth.channel5.com
- hwdash.channel5.com
- c5apps.channel5.com
score:
hosts:
- channel5.com
- corona.channel5.com
- cassie.channel5.com
- cassie-auth.channel5.com
- hwdash.channel5.com
- akamaized.net
- akadash
deny:
- google-analytics
- googletagmanager
- doubleclick
- scorecardresearch
- facebook.com
- crashlytics
- appsflyer
- optimizely
- kantarmedia
aliases:
c5: channel5
five: channel5
ch5: channel5
channel: channel5
my5: channel5
usa: 5usa
star: 5star
action: 5action
select: 5select
cops: 5cops
christmas: 5christmas
drama: 5drama
crime: 5crime
interceptors: policeinterceptors
pi: policeinterceptors
channels:
# Linear Freeview/Freely channels (logo rail order observed on moto g56).
channel5:
label: Channel 5
logo_index: 0
5usa:
label: 5USA
logo_index: 1
5star:
label: 5STAR
logo_index: 2
5action:
label: 5ACTION
logo_index: 3
5select:
label: 5SELECT
logo_index: 4
# FAST / box-set live rails (indices from Live TV scroll; may shift with seasons).
policeinterceptors:
label: Police Interceptors
logo_index: 5
5cops:
label: 5 Cops
logo_index: 6
5christmas:
label: 5 Christmas
logo_index: 7
5drama:
label: 5 Drama
logo_index: 8
bargainbrits:
label: Bargain Loving Brits
logo_index: 9
casualty247:
label: Casualty 24/7
logo_index: 10
rogueclaimers:
label: Rogue Claimers
logo_index: 11
5crime:
label: 5 Crime
logo_index: 12
ui:
launch_desc_contains: ["Home", "Live TV", "Search", "More", "Milkshake"]
live_tab: ["Live TV"]
live_tab_desc_re: ["(?i)^Live TV$"]
live_tab_text_re: ["(?i)^Live TV$"]
watch_live: ["Play", "Watch"]
playback_desc_contains: ["Pause", "Unmute", "Cast"]
channel_scroll_max: 20
logo_max_x: 230
logo_min_y: 700
logo_max_y: 2100
timeouts:
launch_wait_ui: 30s
launch_settle: 5s
live_nav: 20s
channel_find: 45s
after_channel: 2s
watch_live: 20s
playback: 45s