diff --git a/scripts/populate-from-wanikani.ts b/scripts/populate-from-wanikani.ts index da89b3f..0684bbc 100644 --- a/scripts/populate-from-wanikani.ts +++ b/scripts/populate-from-wanikani.ts @@ -5,22 +5,18 @@ async function main() { await wk.sortByLevels('Takoboto', { ja: 'Japanese' }, { useBeyond: true }); await wk.populateSound( - 'note:jp.takoboto', + 'note:jp.takoboto -tag:wanikani', { ja: 'Japanese', audio: 'JapaneseAudio' }, { mode: { online: true } }, ); - await wk.populateSentence( - 'note:jp.takoboto', - { - vocabJa: 'Japanese', - sentenceJa: 'Sentence', - sentenceAudio: 'SentenceAudio', - sentenceEn: 'SentenceMeaning', - sentenceCloze: 'MeaningQuiz', - }, - { overwrite: true }, - ); - await wk.addTags('note:jp.takoboto', { + await wk.populateSentence('note:jp.takoboto -tag:wanikani', { + vocabJa: 'Japanese', + sentenceJa: 'Sentence', + sentenceAudio: 'SentenceAudio', + sentenceEn: 'SentenceMeaning', + sentenceCloze: 'MeaningQuiz', + }); + await wk.addTags('note:jp.takoboto -tag:wanikani', { ja: 'Japanese', }); } diff --git a/src/wanikani.ts b/src/wanikani.ts index eee72e4..68457f0 100644 --- a/src/wanikani.ts +++ b/src/wanikani.ts @@ -547,7 +547,7 @@ export class WaniKani { }); if (!vocabMap.size) return; - query += ` -${fields.ja}:`; + query += ` -tag:wanikani -${fields.ja}:`; const anki = new AnkiConnect(); anki diff --git a/template/jp.takoboto/EJ/Back.html b/template/jp.takoboto/EJ/Back.html index bdee296..ffb7ee3 100644 --- a/template/jp.takoboto/EJ/Back.html +++ b/template/jp.takoboto/EJ/Back.html @@ -6,12 +6,6 @@ {{SentenceAudio}} {{/SentenceAudio}} -{{^SentenceAudio}} -{{#Sentence}} -[sound:https://peaceful-brushlands-36451.herokuapp.com/api/tts?lang=ja&is_sentence=true&q={{kanji:Sentence}}] -{{/Sentence}} -{{/SentenceAudio}} -

{{furigana:Japanese}}

{{#JapaneseAlt}}