mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
The canonical lane classified .srt/.vtt/.ass artifacts served as application/octet-stream as binary and passed them on a 16-byte floor, so auto-subtitles and extract-subtitles only proved their output was non-trivial, not that it was a real subtitle. classify() already keys several formats off the filename extension; extend the text branch the same way so these decode as text and the oracle asserts real content. Verified on a live v2.2.0 container: auto-subtitles now reports 'text 180chars 8lines' and extract-subtitles 'text 101chars 9lines' (both were binary no-signature), still passing, and an empty subtitle would now fail as whitespace-only instead of sliding through.