From 906e7b2e1dec6624c0b9fff9e86508e4f388834c Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 25 Jun 2026 13:49:59 +0200 Subject: [PATCH] Actualiser api.php --- api.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api.php b/api.php index 4097aad..dd036bf 100644 --- a/api.php +++ b/api.php @@ -643,5 +643,15 @@ switch ($action) { echo json_encode($diag, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); exit; break; + + case 'test_dvdfr': + $url = "https://www.dvdfr.com/api/search.php?title=" . urlencode($_GET['title'] ?? 'Matrix'); + $html = httpGet($url, 5); + echo json_encode([ + 'url' => $url, + 'http_length' => $html ? strlen($html) : 0, + 'snippet' => $html ? substr($html, 0, 300) : 'VIDE/ERREUR' + ]); + break; } ?> \ No newline at end of file