From be23e164b79c24a2388699dbd5deed012a5863b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 8 Jan 2026 19:00:03 +0100 Subject: [PATCH] [shopify] support URLs starting with language codes --- gallery_dl/extractor/shopify.py | 2 +- test/results/chelseacrew.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/shopify.py b/gallery_dl/extractor/shopify.py index c5e5c204..839e0da7 100644 --- a/gallery_dl/extractor/shopify.py +++ b/gallery_dl/extractor/shopify.py @@ -83,7 +83,7 @@ BASE_PATTERN = ShopifyExtractor.update({ "root": "https://www.windsorstore.com", "pattern": r"(?:www\.)?windsorstore\.com", }, -}) +}) + "(?:/[a-z]{2}(?:-[^/?#]+)?)?" class ShopifyCollectionExtractor(ShopifyExtractor): diff --git a/test/results/chelseacrew.py b/test/results/chelseacrew.py index 7c12613f..ff7c11b9 100644 --- a/test/results/chelseacrew.py +++ b/test/results/chelseacrew.py @@ -20,4 +20,10 @@ __tests__ = ( "#class" : shopify.ShopifyProductExtractor, }, +{ + "#url" : "https://chelseacrew.com/en-de/collections/bridalcrew/products/gloria", + "#category": ("shopify", "chelseacrew", "product"), + "#class" : shopify.ShopifyProductExtractor, +}, + )