code wiki / _hdl_build / nx_yt_probe.nx

nx_yt_probe.nx

buildroot/runtime/_hdl_build/nx_yt_probe.nx

5620 B89 linesdepth 21pulls 150 transitivereach 0 importersview sourcekind probetopic yt
docsdependenciesstructsconstsfunctions

about

nx_yt_probe.nx -- capability test: fetch a YouTube watch page, extract ytInitialPlayerResponse (embedded state), and report HOW FAR our extractor gets -- direct stream URLs vs signatureCipher (which needs the base.js sig/nsig extractor). Honest assessment, no download. Run from nxc2 root. license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_media_state.nx nx_media_signal.nx nx_media_extract.nx nx_yt_probe.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nxnx_media_state.nxnx_media_signal.nxnx_media_extract.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main pn sys_mmap pw sys_write sys_write ↻ count_occ pslen ms_find pw ↻ sys_mmap ↻ ms_find_streams sys_mmap ↻ ms_find ↻ ms_is_media ms_contains ms_find ↻ ms_contains ↻ mx_extract xh_new sys_mmap ↻ xh_seed xh_addc xh_add xh_slen mx_extract_t sys_mmap ↻ mx_harvest sys_mmap ↻ xt_find xh_classify xt_find ↻ ms_extract_state ms_slen ms_find ↻ ms_extract_json_value xh_best sys_mmap ↻ xh_classify ↻ xt_score

structs

none

consts

11const K_MAGIC_4194304: i64 = 4194304
12const K_MAGIC_8388608: i64 = 8388608
13const K_MAGIC_262144: i64 = 262144
14const K_MAGIC_4096: i64 = 4096
15const K_MAGIC_1024: i64 = 1024

functions

17func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: pnmain calls 1: sys_write
18func pn(v: i64) -> i64 { let b: *u8=sys_mmap(24); var m: i64=v; if m<0{pw("-" as *u8);m=0-m} let t: *u8=sys_mmap(24); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 3: sys_mmappwsys_write
19func pslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: count_occ
20func count_occ(hay: *u8, hl: i64, needle: *u8) -> i64
called by 1: main calls 2: pslenms_find
28func main(argc: i64, argv: *i64) -> i64