fix(stats): don't write sentence clip to expression-audio field

- `getStatsDirectMiningAudioFieldNames` now takes a `mode` param; sentence mode skips `ExpressionAudio`
- Update test expectation: `ExpressionAudio` should be `undefined` after sentence mining
- Clarify changelog wording for the audio-field fix
- Reformat `SearchTab.test.ts` assertions (no behavior change)
This commit is contained in:
2026-06-06 01:58:01 -07:00
parent 83897c81d1
commit 2fca5bbdba
4 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ area: stats
- Fixed vocab-page example sentence mining buttons failing when the Anki deck setting is blank or Yomitan card formats are ordered with a non-term card first.
- Fixed vocab-page example word and audio mining so English subtitles are only written to Selection Text for sentence cards, leaving word cards to show the normal Yomitan dictionary glossary.
- Fixed stats-page mining audio updates so generated sentence clips populate `SentenceAudio` when that field exists, while preserving configured expression-audio behavior for direct sentence cards.
- Fixed stats-page sentence mining audio updates so generated sentence clips populate `SentenceAudio` without also writing the same clip to the configured expression-audio field.
- Fixed stats-page word mining so the hidden Yomitan helper uses the same configured word-audio sources as the normal Yomitan plus button.
- Fixed stats-page sentence mining to use the current Anki deck/settings at request time, create direct sentence cards before slow media generation completes, and include stored English subtitle text as Selection Text.
- Fixed secondary subtitle auto-selection to prefer regular English tracks over Signs/Songs tracks when both are available.