Actualiser api.php
This commit is contained in:
@@ -118,6 +118,10 @@ function emptyPhysicalResult() {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function makeStableId($type, $title, $year) {
|
||||||
|
return (abs(crc32(strtolower(trim($type ?? '')) . '|' . strtolower(trim($title ?? '')) . '|' . trim($year ?? ''))) % 2000000000) + 100000000;
|
||||||
|
}
|
||||||
|
|
||||||
// ── FONCTIONS API PHYSIQUE (UPCitemdb → UPCMDB fallback) ──
|
// ── FONCTIONS API PHYSIQUE (UPCitemdb → UPCMDB fallback) ──
|
||||||
function throttleUpcLookup() {
|
function throttleUpcLookup() {
|
||||||
static $last = 0;
|
static $last = 0;
|
||||||
@@ -516,8 +520,7 @@ function fetchFromBlurayCom($ean) {
|
|||||||
return $empty;
|
return $empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── FONCTION POUR RÉCUPÉRER LES DONNÉES DEPUIS MOVIECOVERS.COM ──
|
function fetchFromMovieCovers($title, $year = '') {
|
||||||
function fetchFromMovieCovers($title) {
|
|
||||||
$empty = [
|
$empty = [
|
||||||
'title' => '', 'year' => '', 'director' => '', 'actors' => '',
|
'title' => '', 'year' => '', 'director' => '', 'actors' => '',
|
||||||
'poster' => '', 'description' => '', 'length' => '',
|
'poster' => '', 'description' => '', 'length' => '',
|
||||||
|
|||||||
Reference in New Issue
Block a user