French live TV for Nightglass: a WebAssembly plugin, no DRM (mirror of github.com/MarcDownHQ/Antenne)
  • Rust 98.3%
  • Shell 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marc-Etienne Barrut 2c77aaa432
Merge pull request #4 from MarcDownHQ/cstar
[cstar] CStar (TNT 17) from canalplus.com, no account
2026-12-01 16:19:56 +07:00
.claude/skills [master] chore(claude): brain, feature-treatment and release skills 2026-11-20 11:43:15 +01:00
.github/workflows [master] ci: GitHub-hosted runners, since the org runner takes no public repo 2026-11-21 05:08:01 +01:00
brain [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00
scripts [master] ci: line coverage floor of 98% 2026-11-20 11:21:04 +01:00
smoke [cstar] smoke: requests keep their method and body, DASH lives are read as manifests 2026-12-01 07:45:29 +01:00
src [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00
tests/fixtures [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00
wit [m6plus] chore: vendor the WIT 0.5.0 from nightglass widevine-cdm (PR #48) 2026-11-26 09:27:13 +01:00
.gitignore [master] chore: crate skeleton, vendored provider WIT and licence 2026-11-20 11:20:08 +01:00
.mise.toml [master] ci: line coverage floor of 98% 2026-11-20 11:21:04 +01:00
Cargo.lock [m6plus] feat: pair with an M6+ account by a TV code 2026-11-26 09:40:15 +01:00
Cargo.toml [m6plus] feat: pair with an M6+ account by a TV code 2026-11-26 09:40:15 +01:00
CHANGELOG.md [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00
CLAUDE.md [tf1plus] docs: the TF1+ channels, the TV device code and the CDN's User-Agent 2026-12-01 05:42:21 +01:00
clippy.toml [master] feat: BFM, Kick, Equidia, EasyBroadcast, HDR_VISIO, Digiteka, TV Monaco and fixed addresses 2026-11-20 11:28:54 +01:00
icon.svg [master] docs: the icon is a TV set with rabbit ears and the nightglass crescent 2026-11-21 04:35:57 +01:00
LICENSE [master] chore: crate skeleton, vendored provider WIT and licence 2026-11-20 11:20:08 +01:00
README.md [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00
ROADMAP.md [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00
rust-toolchain.toml [master] chore: crate skeleton, vendored provider WIT and licence 2026-11-20 11:20:08 +01:00
rustfmt.toml [master] chore: crate skeleton, vendored provider WIT and licence 2026-11-20 11:20:08 +01:00
TODO.md [cstar] merge master (TF1+ channels) 2026-12-01 10:18:16 +01:00

Antenne

Antenne

French live TV for Nightglass.

Antenne is a Nightglass plugin: a WebAssembly component that adds a source of 109 French live channels. The national public channels and the France 3 editions come from France Télévisions, TF1, TMC, TFX, TF1 Séries Films, LCI and Novo19 from TF1+, CNews, L'Équipe, T18 and the radios with a video live from Dailymotion, BFM TV and its local channels from bfmtv.com, M6, W9, Gulli and 6ter from M6+, RMC Story, RMC Découverte and RMC Life from RMC BFM Play, CStar from canalplus.com, plus Equidia, KTO, local stations and a few overseas channels. Every address is found at play time, since most are signed and short-lived.

Status: 0.1.0, not released yet. A live check over the 95 clear channels on 2026-11-20 played every one end to end, T18 on a second try. A Dailymotion master is refused about once in twenty fetches; the Nightglass relay asks it again since PR #44 (see TODO.md). Antenne speaks the plugin contract 0.5.0 of Nightglass PR #47 and PR #48 (Widevine), not merged yet, so it needs a Nightglass release that includes them. The M6+ channels played at 1080p on 2026-11-26 once two Nightglass decryption bugs were worked around outside Antenne (see TODO.md); the RMC BFM Play channels played at 1080p through Nightglass #48 on 2026-11-30, with a short A-V drift at the stream's splices; the six TF1+ channels played in Nightglass on 2026-12-01 (Novo19 at 1080p, the others at 720p). CStar played at 540p through Nightglass's CDM decoder on 2026-12-01; canalplus.com licenses its 720p and 1080p only to stronger devices, and Nightglass's full player asks for 1080p, so it shows CStar only once Nightglass falls back to the 540p it has the key for (see TODO.md). No replay and no programme guide yet (see ROADMAP.md).

Install

Download antenne.wasm from the latest GitHub release into Nightglass's plugin folder:

  • Windows: %APPDATA%\com.marcdownhq.nightglass\plugins
  • macOS: ~/Library/Application Support/com.marcdownhq.nightglass/plugins
  • Linux: ~/.local/share/com.marcdownhq.nightglass/plugins

Restart Nightglass, then add a source of type Antenne (one click, from its preset). It has no settings.

M6, W9, Gulli and 6ter

These four are Widevine and need a free M6+ account:

  1. In Nightglass's Settings, turn on protected content (Widevine). Nightglass downloads Google's module; until then the four channels are greyed out.
  2. Play one of them. Nightglass shows a five-letter code: open m6.fr/device-pairing on a phone or a computer, sign in to M6+ and enter it within five minutes.
  3. Play the channel again. Antenne is now paired as a TV of that account; it keeps a device id and the account id, never a password. Removing the device from the M6+ account brings the code back on the next play.

RMC Story, RMC Découverte and RMC Life

These three are Widevine and need a free RMC BFM Play account:

  1. Turn on protected content, as for M6+.
  2. Play one of them. Nightglass shows a code like ABC-123 and a link to connect.rmcbfm.com/device with the code filled in: open it on a phone or a computer, sign in to RMC BFM Play and confirm within fifteen minutes. The channel starts on its own a few seconds later.
  3. Antenne is now signed in as a TV of that account; it keeps the token the service gives a TV, never a password. Signing that TV out of the account brings the code back on the next play.

CStar

CStar is Widevine but needs no account: turn on protected content, as for M6+, and play it. Antenne asks canalplus.com for the anonymous token its web player gets, on each play, and keeps nothing.

TF1, TMC, TFX, TF1 Séries Films and Novo19

These five are clear but need a free TF1+ account; LCI plays without one.

  1. Play one of them. Nightglass shows an eight-digit code like 1234-5678 and a link to tf1.fr/tv with the code filled in: open it on a phone or a computer, sign in to TF1+ and confirm within five minutes. The channel starts on its own a few seconds later.
  2. Antenne is now signed in as a TV of that account; it keeps the token the service gives a TV, never a password. Disconnecting that TV in the account's "Appareils connectés" brings the code back the next time Nightglass starts.

How it works

load-catalog returns a channel table compiled into the plugin, grouped (National, News, Sport, Thematic, International, Radio, Regional, Overseas, Local), with the national TNT numbers and logos. stream-url resolves the channel when it is played:

  • France Télévisions: the k7 descriptor names the live's HLS master, hdfauth signs it.
  • Dailymotion: the player metadata gives a signed master, played whole (its audio is in separate renditions) through the Nightglass relay with a browser handshake. The relay's filter cuts the master down to one encoder, since many masters list a primary and a backup side by side on unrelated timelines.
  • BFM: the live page names a static master.
  • M6+: Antenne pairs itself with the viewer's account as an M6+ TV, takes the channel's Widevine DASH live and a DRMtoday license token, and sends the CDM's license requests to DRMtoday through the license export. Nightglass decrypts and plays it.
  • RMC BFM Play: Antenne signs in as an RMC BFM Play TV by a device code, reads the channel's page for its Widevine HLS live and play token, and sends the CDM's license requests to DRMtoday through the license export.
  • canalplus.com: Antenne takes the anonymous token canalplus.com's web player gets, the channel's stream route and its Widevine DASH live, and sends the CDM's license requests to canalplus.com's license server through the license export.
  • TF1+: TF1's mediainfo gives a clear HLS live, the broadcast feed rather than Broadpeak's ad-insertion one. LCI needs no account; for the others Antenne signs in as a TF1+ TV by a device code. TF1's CDN refuses libmpv's User-Agent, so the playback carries a browser one.
  • The rest: Kick, the Equidia racing API, EasyBroadcast, HDR_VISIO and Ultimedia players, TV Monaco's API, and a few fixed addresses.

Details live in brain/. Everything Antenne knows about these services comes from observing them.

Development

cargo fmt --all
cargo clippy --all-targets -- -D warnings
cargo clippy --target wasm32-wasip2 --release -- -D warnings
cargo test
scripts/coverage.sh --check                       # 98% of lines
cargo build --release --target wasm32-wasip2       # target/wasm32-wasip2/release/antenne.wasm
cargo run -p antenne-smoke --release -- cnews france-2 bfmtv   # against the live services

The toolchain (Rust with the wasm32-wasip2 target) is pinned in rust-toolchain.toml and .mise.toml.

Licence

MIT, see LICENSE. wit/provider.wit comes from Nightglass, MIT as well.