diff --git a/JL.Core/Mining/Anki/Note.cs b/JL.Core/Mining/Anki/Note.cs index 40a44b73..b96e7321 100644 --- a/JL.Core/Mining/Anki/Note.cs +++ b/JL.Core/Mining/Anki/Note.cs @@ -10,16 +10,16 @@ internal sealed class Note( Dictionary fields, string[]? tags = null, Dictionary? options = null, - Dictionary[]? audio = null, - Dictionary[]? picture = null, - Dictionary[]? video = null) + Dictionary[]? audios = null, + Dictionary[]? pictures = null, + Dictionary[]? videos = null) { [JsonPropertyName("deckName")] public string DeckName { get; } = deckName; [JsonPropertyName("modelName")] public string ModelName { get; } = modelName; [JsonPropertyName("fields")] public Dictionary Fields { get; } = fields; [JsonPropertyName("tags")] public string[]? Tags { get; set; } = tags; [JsonPropertyName("options")] public Dictionary? Options { get; set; } = options; - [JsonPropertyName("audio")] public Dictionary[]? Audio { get; set; } = audio; - [JsonPropertyName("picture")] public Dictionary[]? Picture { get; set; } = picture; - [JsonPropertyName("video")] public Dictionary[]? Video { get; } = video; + [JsonPropertyName("audio")] public Dictionary[]? Audios { get; set; } = audios; + [JsonPropertyName("picture")] public Dictionary[]? Pictures { get; set; } = pictures; + [JsonPropertyName("video")] public Dictionary[]? Videos { get; } = videos; } diff --git a/JL.Core/Mining/MiningUtils.cs b/JL.Core/Mining/MiningUtils.cs index ba91084f..8f285441 100644 --- a/JL.Core/Mining/MiningUtils.cs +++ b/JL.Core/Mining/MiningUtils.cs @@ -900,7 +900,7 @@ public static async Task Mine(LookupResult lookupResult, string currentText, str if (audioData is not null) { - note.Audio = + note.Audios = [ new Dictionary(4, StringComparer.Ordinal) { @@ -928,7 +928,7 @@ public static async Task Mine(LookupResult lookupResult, string currentText, str if (imageBytes is not null) { - note.Picture = + note.Pictures = [ new Dictionary(3, StringComparer.Ordinal) {