[shopify] support URLs starting with language codes
This commit is contained in:
@@ -83,7 +83,7 @@ BASE_PATTERN = ShopifyExtractor.update({
|
||||
"root": "https://www.windsorstore.com",
|
||||
"pattern": r"(?:www\.)?windsorstore\.com",
|
||||
},
|
||||
})
|
||||
}) + "(?:/[a-z]{2}(?:-[^/?#]+)?)?"
|
||||
|
||||
|
||||
class ShopifyCollectionExtractor(ShopifyExtractor):
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user