Actualiser api.php
This commit is contained in:
@@ -564,19 +564,5 @@ case 'get_config_keys':
|
|||||||
$pdo->commit();
|
$pdo->commit();
|
||||||
echo json_encode(["success" => true, "imported" => $imported]);
|
echo json_encode(["success" => true, "imported" => $imported]);
|
||||||
break;
|
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;
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user