No duplicate keys

This commit is contained in:
glax 2023-05-21 21:24:04 +02:00
parent 84dbc36bbf
commit ea69b355b5

View File

@ -63,7 +63,7 @@ public class MangaDex : Connector
{
JsonObject altTitleObject = (JsonObject)altTitleNode!;
string key = ((IDictionary<string, JsonNode?>)altTitleObject).Keys.ToArray()[0];
altTitlesDict.Add(key, altTitleObject[key]!.GetValue<string>());
altTitlesDict.TryAdd(key, altTitleObject[key]!.GetValue<string>());
}
JsonArray tagsObject = attributes["tags"]!.AsArray();