From 0fc196eb3e2472fb26c4688e43db86907e1805f5 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Thu, 21 Jan 2021 00:56:18 -0800 Subject: [PATCH] Fix MangaDex endOfLife check --- dosagelib/plugins/mangadex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/mangadex.py b/dosagelib/plugins/mangadex.py index 8c07f8dd0..3e85b7010 100644 --- a/dosagelib/plugins/mangadex.py +++ b/dosagelib/plugins/mangadex.py @@ -25,7 +25,9 @@ class MangaDex(_ParserScraper): mangaData = manga.json() # Determine if manga is complete and/or adult if mangaData['manga']['last_chapter'] != '0': - self.endOfLife = True + for ch in mangaData['chapter']: + if mangaData['chapter'][ch]['chapter'] == mangaData['manga']['last_chapter']: + self.endOfLife = True if mangaData['manga']['hentai'] != '0': self.adult = True # Prepare chapter list