App playback source and signature attribution

The necessary signature, Spade URL and content-key routines in app-source.js
are adapted from N3urda/hongguoTV server/vendor/hongguo.cjs, commit
 eea73e6a45569a2cbbb9440f7cd5290c459b0b70.
https://github.com/N3urda/hongguoTV

That file is an unmodified copy (renamed) of spider/js/红果果[短].js from
woshishiq1/drpys, commit 22261adfa31435e3b3ef5a730b8a2a75bcaf1715.
https://github.com/woshishiq1/drpys
Upstream license: GPL-3.0; complete text: LICENSE.drpys.txt.

Modifications made 2026-10-07: limited playback adapter, local ephemeral
visitor identifiers, removal of fixed visitor fingerprints, strict response
and destination validation, supported-codec selection and no secret logging.
SM3 is implemented locally for Electron runtimes without native SM3 support.
The optional 3.4 App search request reuses the same signature routines for a
GET query (hash branch 0 only); it keeps the local ephemeral device identity and
is disabled by default. The existing application remains GPL-3.0.

Anonymous playback registration and inline-model compatibility added 2026-10-27
reference tsukiyo-zero/hongguoTV, commit
388931852ddc614db8b00775a3dc54c5ede6307f (GPL-3.0-only):
https://github.com/tsukiyo-zero/hongguoTV
DeviceRegister.kt attributes its registration protocol to charlie901208/HGTV,
feat/phone-login (GPL-3.0-only). playback-device.js adapts its ttEncrypt and
registration fields using Node crypto/zlib, with no cookies, account login,
persistent identity or retained device_token. The same in-memory identity is
shared by all playback requests in one process. Search/catalogue signatures
remain unchanged. app-source.js also accepts the current inline video_list
without requesting the legacy fallback endpoint.

Playback empty-response recovery added 2026-11-10 references the video_tab
query parameters and nested model response documented in
tsukiyo-zero/hongguoTV ContentRepository.tabVideoModel, commit
49532eb2110dcbf66814ca250d43f222e7193895 (GPL-3.0-only), at the same upstream URL.
app-source.js reuses its existing signing routines for a bodyless GET after
an empty legacy POST, preserves exact episode matching and accepts both array
and object rendition lists. No account cookies, tokens or persistent identity
are added. Validation and scope are recorded in docs/issue-130-video-tab.md.

Playback video_tab authorization updated 2026-11-20 using the bodyless V5 GET
envelope documented and ported by ch6vip/novel-sound, commit
619114169614f883a9a3073ba8ab31e8587b2bcd (GPL-3.0-only):
https://github.com/ch6vip/novel-sound
The player-family request carries x-khronos, x-helios and x-medusa, signs the
empty-body digest, and omits body-describing headers. The local implementation
reuses playback-v5.js, retains strict query fields, exact episode matching and
bounded retries, and adds no account cookies or persistent identity.

Playback-only 551 x-argus and x-ladon signing (6.9)
Adapted from N3urda/hongguoTV, commit
7444bb01aec7b0420740103e551c45f1f66101c9 (GPL-3.0-only),
kotlin-tv/core/src/main/kotlin/com/hongguotv/core/Argus.kt,
blob 9f1b06f16c778f07d1bd9e1f8e9a596590e57213.
That implementation attributes ch6vip/fqapp (GPL-3.0-only),
rust/src/sign/argus.rs, simon.rs, ladon.rs and protobuf.rs.
Independent fixed vectors come from the same commit's PlayerSignTest.kt,
blob 89f48bb174f558988807ee3ceab2a6011cfff229.
Changes: native JavaScript/BigInt and Node crypto, existing pure-JS SM3;
ordered uint32 protobuf, 72-round Simon, 551 framing/AES-CBC and Ladon ARX.
Only playback model headers use this family, bound to final query/raw body/time.
No upstream device persistence/rotation, enlarged retry budget, privilege changes,
account cookies or registration changes are imported. Other signing paths remain
on their existing algorithms. Protocol constants are not user credentials.
