No duplicate keys
This commit is contained in:
parent
84dbc36bbf
commit
ea69b355b5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user