Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 25, 2024
1 parent 8619fa6 commit 887cb02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions JL.Core/Mining/Anki/Note.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ internal sealed class Note(
Dictionary<string, string> fields,
string[]? tags = null,
Dictionary<string, object>? options = null,
Dictionary<string, object>[]? audio = null,
Dictionary<string, object>[]? picture = null,
Dictionary<string, object>[]? video = null)
Dictionary<string, object>[]? audios = null,
Dictionary<string, object>[]? pictures = null,
Dictionary<string, object>[]? videos = null)
{
[JsonPropertyName("deckName")] public string DeckName { get; } = deckName;
[JsonPropertyName("modelName")] public string ModelName { get; } = modelName;
[JsonPropertyName("fields")] public Dictionary<string, string> Fields { get; } = fields;
[JsonPropertyName("tags")] public string[]? Tags { get; set; } = tags;
[JsonPropertyName("options")] public Dictionary<string, object>? Options { get; set; } = options;
[JsonPropertyName("audio")] public Dictionary<string, object>[]? Audio { get; set; } = audio;
[JsonPropertyName("picture")] public Dictionary<string, object>[]? Picture { get; set; } = picture;
[JsonPropertyName("video")] public Dictionary<string, object>[]? Video { get; } = video;
[JsonPropertyName("audio")] public Dictionary<string, object>[]? Audios { get; set; } = audios;
[JsonPropertyName("picture")] public Dictionary<string, object>[]? Pictures { get; set; } = pictures;
[JsonPropertyName("video")] public Dictionary<string, object>[]? Videos { get; } = videos;
}
4 changes: 2 additions & 2 deletions JL.Core/Mining/MiningUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, object>(4, StringComparer.Ordinal)
{
Expand Down Expand Up @@ -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<string, object>(3, StringComparer.Ordinal)
{
Expand Down

0 comments on commit 887cb02

Please sign in to comment.