From 88ef24780a81715199be80b51cdc446e48c5b40a Mon Sep 17 00:00:00 2001 From: Cedric Date: Fri, 26 Jun 2026 10:28:39 +0200 Subject: [PATCH] Actualiser api.php --- api.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/api.php b/api.php index ede052d..d584a65 100644 --- a/api.php +++ b/api.php @@ -564,19 +564,5 @@ case 'get_config_keys': $pdo->commit(); echo json_encode(["success" => true, "imported" => $imported]); break; - - case 'debug_fanart': - $title = $_GET['title'] ?? ''; - $year = $_GET['year'] ?? ''; - if (!$title) { echo json_encode(['error' => 'Titre manquant']); exit; } - - $result = ['title' => $title, 'year' => $year]; - $fanartData = fetchFanartTv($title, $year, 'Blu-ray', $pdo); - $result['data'] = $fanartData; - $result['status'] = $fanartData ? 'OK' : 'AUCUN_RÉSULTAT'; - - echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); - exit; - break; } ?> \ No newline at end of file