From 2550beb621ad9f8f9b93ac3668171b97a28bb022 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 20 May 2023 00:46:25 +0200 Subject: [PATCH] non-english titles can now also be listed. --- Tranga/Connectors/MangaDex.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/Connectors/MangaDex.cs b/Tranga/Connectors/MangaDex.cs index 601a223..14c3a1a 100644 --- a/Tranga/Connectors/MangaDex.cs +++ b/Tranga/Connectors/MangaDex.cs @@ -49,8 +49,8 @@ public class MangaDex : Connector string title = attributes["title"]!.AsObject().ContainsKey("en") && attributes["title"]!["en"] is not null ? attributes["title"]!["en"]!.GetValue() - : ""; - + : attributes["title"]![((IDictionary)attributes["title"]!.AsObject()).Keys.First()]!.GetValue(); + string? description = attributes["description"]!.AsObject().ContainsKey("en") && attributes["description"]!["en"] is not null ? attributes["description"]!["en"]!.GetValue() : null;