Fix MangaDex endOfLife check
This commit is contained in:
parent
13c612c26e
commit
0fc196eb3e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue