mirror of
https://github.com/guillaumemeyer/watermarks-remover.git
synced 2026-08-22 13:11:57 +02:00
* fix: route website binary formats to their real scanners guess_kind recognized html/png/jpeg/svg/pdf/docx/odt/markdown/text and fell through to text for everything else: webp, avif, heic, gif, bmp, tiff, xlsx, pptx, epub, mp4/mov/m4a, wav, and mp3 downloads were written to asset.txt and handed to the Unicode scanner, so a WebP carrying a C2PA RIFF chunk reported clean with no failure signal — audit_website exited 0 with with_c2pa: 0 (#166). The drift between this table and format_dispatch's IMAGE/CONTAINER/AV_EXTS was where the bug lived. Extend all three classification stages (content type, suffix, magic bytes with ftyp brand dispatch) to cover every format the local audit handles, and map the new kinds in _EXT_FOR_KIND so the temp file keeps a true suffix for the local classify. * fix: satisfy ruff lint and format checks --------- Co-authored-by: yzxcj797 <yzxcj797@users.noreply.github.com> Co-authored-by: Guillaume Meyer (The Opinionated Man) <1385518+guillaumemeyer@users.noreply.github.com> Co-authored-by: guillaumemeyer <guillaumemeyer@users.noreply.github.com>