From a344e2b40ce6660021ef67043fe281cc685ec5a0 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Mon, 18 Mar 2024 09:27:29 +0100 Subject: [PATCH] bigger image fix, include png images too --- src/aliexpress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliexpress.py b/src/aliexpress.py index b02cb99..9570fb2 100644 --- a/src/aliexpress.py +++ b/src/aliexpress.py @@ -62,7 +62,7 @@ def check_item(settings_item): image = re.findall(image_regex, target_page_response.text) if len(image)>0: image_link = image[0] - image_link = re.sub(r'jpg_[0-9]+x[0-9]+', "jpg_800x800", image_link) # get bigger image instead of preview + image_link = re.sub(r'(jpg|png)_[0-9]+x[0-9]+', "jpg_800x800", image_link) # get bigger image instead of preview break # get currency