[shopify] support URLs starting with language codes

This commit is contained in:
Mike Fährmann
2026-01-08 19:00:03 +01:00
parent 5b8627a646
commit be23e164b7
2 changed files with 7 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ BASE_PATTERN = ShopifyExtractor.update({
"root": "https://www.windsorstore.com",
"pattern": r"(?:www\.)?windsorstore\.com",
},
})
}) + "(?:/[a-z]{2}(?:-[^/?#]+)?)?"
class ShopifyCollectionExtractor(ShopifyExtractor):

View File

@@ -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,
},
)