diff --git a/api.php b/api.php index d81ca13..d074ccc 100644 --- a/api.php +++ b/api.php @@ -116,64 +116,75 @@ function emptyPhysicalResult() { ]; } -// ── NOUVELLE FONCTION : SCRAPPING GO-UPC.COM (CORRIGÉE) ── -function fetchFromGoUpc($ean) { +// ── NOUVELLE FONCTION : SCRAPPING DVDFR.COM ── +function fetchFromDvdfr($ean) { $empty = emptyPhysicalResult(); - $url = "https://go-upc.com/search?q=" . urlencode($ean); + $url = "https://www.dvdfr.com/listeliv.php?base=dvd&mots_recherche=" . urlencode($ean); $html = httpGet($url, 15); if (!$html) return $empty; - // Recherche du titre dans h1.product-name - if (preg_match('/