From 82c494516b8c6991dc3c06fe0521aed3eed2bad5 Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 29 Dec 2022 00:52:40 +0100 Subject: [PATCH] DresdenCodak: New pages can have the resolution in the name --- dosagelib/plugins/d.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/d.py b/dosagelib/plugins/d.py index 75886d6d25..6fd83956e0 100644 --- a/dosagelib/plugins/d.py +++ b/dosagelib/plugins/d.py @@ -334,7 +334,9 @@ class DresdenCodak(_ParserScraper): hob_start = datetime.strptime("2007-02-08", date_format) hob_end = datetime.strptime("2008-10-22", date_format) - pagenumber_re = compile("(?:[0-9]+-)*[^0-9]+_([0-9]+)(?:a|-1|_001)?\.jpg$") + pagenumber_re = compile( + "(?:[0-9]+-)*[^0-9]+_([0-9]+)(?:a|b|-1|_001|-[0-9]+x[0-9]+)?\.jpg$" + ) def getPrevUrl(self, url, data): # Fix skipping newest One-Off