code wiki / _hdl_build / nx_media_extract.nx

nx_media_extract.nx

buildroot/runtime/_hdl_build/nx_media_extract.nx

4389 B73 linesdepth 4pulls 5 transitivereach 9 importersview sourcekind librarytopic media
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_media_signal.nx nx_media_state.nx nx_extract_heal.nx nx_media_extract.nx nx_archive_capture.nx nx_archive_daemon.nx nx_archive_live.nx nx_media_adapt_gate.nx nx_media_extract_gate.nx nx_media_nuxt_manifest_gate.nx nx_vk_probe.nx nx_yt_probe.nx

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

16func mx_harvest(src: *u8, srclen: i64, out: *u8, outoff: i64, cap: i64, table: *i64) -> i64
54func mx_extract_t(html: *u8, hlen: i64, best_url: *u8, cap: i64, kind: *i64, table: *i64) -> i64
69func mx_extract(html: *u8, hlen: i64, best_url: *u8, cap: i64, kind: *i64) -> i64