0.1.6A bugfix

This commit is contained in:
User
2025-05-28 15:15:19 -04:00
parent 7837e7db0c
commit 2c730be26f
6 changed files with 137 additions and 4767 deletions

View File

@@ -32,7 +32,7 @@ class CopyManga
/**
* @var string
*/
protected string $url = "https://api.mangacopy.com/api/";
protected string $url = "https://mapi.copy20.com/api/";
/**
* @var string Encryption for legacy image fetch
@@ -151,7 +151,7 @@ class CopyManga
if ($method === 'OPTIONS') {
$options = ['headers' => ['Access-Control-Request-Method' => 'GET']];
} else {
$options = ['headers' => ['platform' => '1', 'version' => '2022.10.28', 'webp' => '0', 'region' => '0', 'Accept' => 'application/json']];
$options = ['headers' => ['platform' => '1', 'version' => '2025.05.09', 'webp' => '0', 'region' => '0', 'Accept' => 'application/json']];
}
$response = $client->request($method, $url, $options);
@@ -227,10 +227,20 @@ class CopyManga
$parameters['limit'] = $limit;
$parameters['offset'] = $offset;
$parameters['top'] = $top;
$parameters['free_type'] = 1;
$parameters['ordering'] = "-datetime_updated";
$parameters['_update'] = true;
$a = $this->network21();
return $this->execute($this->buildUrl("comics", $parameters), ttl: 15 * 60);
}
public function network21()
{
return $this->execute($this->buildUrl("system/network21", ['platform' => 1]));
}
/**
* Search comic by name
*