From fb0ea00bcb272d7d889a9114d61d05cf1368c6b2 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 a3634922d7..2ab1a5b116 100644 --- a/dosagelib/plugins/d.py +++ b/dosagelib/plugins/d.py @@ -346,7 +346,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