Fix MangaDex endOfLife check
This commit is contained in:
parent
13c612c26e
commit
0fc196eb3e
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,8 @@ class MangaDex(_ParserScraper):
|
||||||
mangaData = manga.json()
|
mangaData = manga.json()
|
||||||
# Determine if manga is complete and/or adult
|
# Determine if manga is complete and/or adult
|
||||||
if mangaData['manga']['last_chapter'] != '0':
|
if mangaData['manga']['last_chapter'] != '0':
|
||||||
|
for ch in mangaData['chapter']:
|
||||||
|
if mangaData['chapter'][ch]['chapter'] == mangaData['manga']['last_chapter']:
|
||||||
self.endOfLife = True
|
self.endOfLife = True
|
||||||
if mangaData['manga']['hentai'] != '0':
|
if mangaData['manga']['hentai'] != '0':
|
||||||
self.adult = True
|
self.adult = True
|
||||||
|
|
Loading…
Reference in a new issue