From 2be29e4019fe4af729c915dc3d8390a06b11bb13 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 7 Sep 2024 20:16:05 +0200 Subject: [PATCH] MangaDex only download single release for chapter. Fix #219 --- Tranga/MangaConnectors/MangaDex.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/MangaConnectors/MangaDex.cs b/Tranga/MangaConnectors/MangaDex.cs index 005da07..cbb8ffb 100644 --- a/Tranga/MangaConnectors/MangaDex.cs +++ b/Tranga/MangaConnectors/MangaDex.cs @@ -243,7 +243,7 @@ public class MangaDex : MangaConnector continue; } - if(chapterNum is not "null") + if(chapterNum is not "null" && !chapters.Any(chp => chp.volumeNumber.Equals(volume) && chp.chapterNumber.Equals(chapterNum))) chapters.Add(new Chapter(manga, title, volume, chapterNum, chapterId)); } }