Expand description
The Audio Grading tab: SFX library grades kept in each MP3โs
TXXX:XIL_GRADE frame, with a persisted (size, mtime) cache so a rescan
of a NAS library is one walk plus stats.
The cache file (SFX/.xil_grade_cache.json) has the Python GUIโs exact
format, so both dashboards share it.
Constantsยง
- CACHE_
VERSION ๐
Functionsยง
- apply_
grade - Write a grade to the file, the in-memory map and the persisted cache. Only paths the last scan found are accepted.
- glyph
_GRADE_GLYPH.- grade_
cache_ path _grade_cache_path().- grade_
of - The grade of one cached path,
""when ungraded or unknown. - is_
grade - load_
grade_ cache_ file _load_grade_cache_file():{rel_path: {grade, size, mtime_ns}}, empty when missing, corrupt or another version.- record ๐
- save_
grade_ cache_ file _save_grade_cache_file(files). Best-effort.- scan_
sfx_ grades _scan_sfx_grades(): rebuild the in-memory grade map for everySFX/**/*.mp3, reading ID3 only for files whose size or mtime changed.- sfx_
choices _sfx_choices(grade_filter):[(glyph [show] name, path)].- sfx_dir
_sfx_dir(slug): the SFX library, scoped toSFX/{slug}when it exists.- sfx_
show_ label _sfx_show_label(path, root): the per-show subdirectory, or""for the shared pool and anything not underroot.- sfx_
summary _sfx_summary().- stat ๐
- update_
grade_ cache_ entry _update_grade_cache_entry(path, grade): store the post-write stat so the next scan stays read-free.