Skip to content

Commit

Permalink
Update api for anilist info
Browse files Browse the repository at this point in the history
  • Loading branch information
soruly committed Mar 1, 2021
1 parent 76c1422 commit 58de136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/search.php
Expand Up @@ -28,7 +28,7 @@
$res = null;

if (isset($_GET['url']) && $_GET['url']) {
$curl = curl_init("https://api.trace.moe/search?cutBorders=1&url=".rawurlencode($_GET['url']));
$curl = curl_init("https://api.trace.moe/search?info=basic&cutBorders=1&url=".rawurlencode($_GET['url']));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($curl);
curl_close($curl);
Expand All @@ -37,7 +37,7 @@
$savePath = '../temp/'.microtime(true).'.jpg';
file_put_contents($savePath, $data);

$curl = curl_init("https://api.trace.moe/search?cutBorders=1");
$curl = curl_init("https://api.trace.moe/search?info=basic&cutBorders=1");
curl_setopt($curl, CURLOPT_POST, true);
$cFile = curl_file_create($savePath);
curl_setopt($curl, CURLOPT_POSTFIELDS, array('image'=> $cFile));
Expand All @@ -55,7 +55,7 @@
$savePath = '../temp/'.microtime(true).'.jpg';
file_put_contents($savePath, base64_decode($data));

$curl = curl_init("https://api.trace.moe/search?cutBorders=1");
$curl = curl_init("https://api.trace.moe/search?info=basic&cutBorders=1");
curl_setopt($curl, CURLOPT_POST, true);
$cFile = curl_file_create($savePath);
curl_setopt($curl, CURLOPT_POSTFIELDS, array('image'=> $cFile));
Expand Down

0 comments on commit 58de136

Please sign in to comment.