From 01d1f922c29224376abd537ebcf6ec8eee6ea0df Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 28 Jun 2023 00:13:09 +0200 Subject: [PATCH] MangaDex chapterNumber non.nullable --- 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 2087934..15cb28c 100644 --- a/Tranga/Connectors/MangaDex.cs +++ b/Tranga/Connectors/MangaDex.cs @@ -190,9 +190,9 @@ public class MangaDex : Connector ? attributes["volume"]!.GetValue() : null; - string? chapterNum = attributes.ContainsKey("chapter") && attributes["chapter"] is not null + string chapterNum = attributes.ContainsKey("chapter") && attributes["chapter"] is not null ? attributes["chapter"]!.GetValue() - : null; + : "null"; chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId)); }