diff --git a/openfoodfacts/images.py b/openfoodfacts/images.py index 27af5d1..7f2a03d 100644 --- a/openfoodfacts/images.py +++ b/openfoodfacts/images.py @@ -192,6 +192,7 @@ def extract_source_from_url(url: str) -> str: if url_path.endswith(".json"): url_path = str(Path(url_path).with_suffix(".jpg")) + # normalize windows path to unix path return url_path.replace("\\", "/")