From 947405a50d04b51a309f3bbe4308a637493afd22 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Wed, 25 Dec 2019 21:34:04 -0800 Subject: [PATCH] Fix Djandora --- dosagelib/plugins/petitesymphony.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dosagelib/plugins/petitesymphony.py b/dosagelib/plugins/petitesymphony.py index 24725adc7..6d73335b9 100644 --- a/dosagelib/plugins/petitesymphony.py +++ b/dosagelib/plugins/petitesymphony.py @@ -33,6 +33,19 @@ class ComicsBreak(_WordPressScraper): if archive: self.url = 'https://web.archive.org/web/{}/{}'.format( archive, self.url) + self.endOfLife = True + + def namer(self, imageUrl, pageUrl): + if self.name == 'ComicsBreak/Djandora': + # Fix inconsistent filenames + filename = imageUrl.rsplit('/', 1)[-1] + filename = filename.replace('2014-10-31-Page70', 'Page70') + filename = filename.replace('a3p69eng', 'Page69') + if '2015/08/a4p57eng' in imageUrl: + filename = filename.replace('p57', 'p56') + return filename + else: + return super(ComicsBreak, self).namer(imageUrl, pageUrl) @classmethod def getmodules(cls):