Files
SubMiner/changes/duplicate-line-stats-cleanup.md
T
sudacode 046a87a826 fix(stats): harden duplicate-line cleanup and tracking
- Reject malformed requests and sub-day cleanup windows
- Reset deduplication across media and subtitle-track changes
- Handle karaoke bursts ending with a long hold frame
2026-08-11 22:20:50 -07:00

1.1 KiB

type: fixed area: stats

  • Typeset subtitles no longer flood the stats. Karaoke openings and animated signs are authored as one subtitle event per animation frame, and immersion tracking counted every frame, which was enough to put an OP lyric at the top of "Top Repeated Words" for good. Lines are now collapsed on the way in using the same rules the subtitle sidebar already applies: matching parsed timings record exactly the cues the sidebar shows, while shifted, changing, or unparsed sources use a strict fallback where identical, contiguous, sub-0.1s lines stop counting after a few frames. Ordinary repeated dialogue and rewatches are unaffected.
  • Added a cleanup for stats already affected. The Vocabulary tab has a Duplicates button that scans a chosen window (7 days through all time), shows the bursts it found and the word and kanji counts they added, and collapses each run to one line once confirmed. subminer stats cleanup --duplicate-lines does the same from the terminal, with --dry-run and --lookback-days <n>. Only subtitle lines and the vocabulary counts they feed are touched; watch time and lines-seen totals are left as recorded.