code wiki / _hdl_build / nx_media_extract.nx
nx_media_extract.nx
buildroot/runtime/_hdl_build/nx_media_extract.nx
about
nx_media_extract.nx -- the INTELLIGENT EXTRACTION ORCHESTRATOR: one callable that runs the discovery layers
over a page and returns the BEST media URL, ranked by the SELF-HEALING pattern table (nx_extract_heal:
xh_classify / xh_best). Consolidates the layers: (1) raw-HTML URL harvest (JSON-`\/`-aware) -> classify ->
catches inline + escaped URLs incl extension-LESS ones (YouTube videoplayback); (2) embedded-state blobs
(__NUXT__ / ytInitialPlayerResponse) harvested the same way. Union -> xh_best. Because harvest AND rank both
key off the DATA-DRIVEN table (seeded from xt_classify's knowledge, extensible by xh_learn), a URL the system
LEARNED from a past failure flows through end-to-end -- the extractor adapts without a code edit. A live
caller passes its persisted/healed table to mx_extract_t; mx_extract seeds a fresh one. license_tier: ORIGINAL
dependencies 4 imports · 8 importers
imports: nx_syscalls.nxnx_media_signal.nxnx_media_state.nxnx_extract_heal.nx
imported by: nx_archive_capture.nxnx_archive_daemon.nxnx_archive_live.nxnx_media_adapt_gate.nxnx_media_extract_gate.nxnx_media_nuxt_manifest_gate.nxnx_vk_probe.nxnx_yt_probe.nx
structs
| none |
consts
| none |
functions
| 16 | func mx_harvest(src: *u8, srclen: i64, out: *u8, outoff: i64, cap: i64, table: *i64) -> i64 |
| 54 | func mx_extract_t(html: *u8, hlen: i64, best_url: *u8, cap: i64, kind: *i64, table: *i64) -> i64 |
| 69 | func mx_extract(html: *u8, hlen: i64, best_url: *u8, cap: i64, kind: *i64) -> i64 |