0.1.3
This commit is contained in:
@@ -296,7 +296,7 @@ class CopyManga
|
||||
public function legacyChapter(string $comic, string $chapter): array
|
||||
{
|
||||
$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36";
|
||||
$responses = $this->execute($this->legacyBuildUrl("comic/{$comic}/chapter/{$chapter}"), "GET", $userAgent, ttl: 24 * 60 * 60);
|
||||
$responses = $this->execute($this->legacyBuildUrl("comic/{$comic}/chapter/{$chapter}"), "GET", $userAgent, ttl: 24 * 60 * 60 * 30);
|
||||
|
||||
// Get Content Key
|
||||
$dom = new DOMDocument();
|
||||
@@ -346,7 +346,7 @@ class CopyManga
|
||||
*/
|
||||
public function chapter(string $comic, string $chapter, array $parameters = []): array
|
||||
{
|
||||
$responses = $this->execute($this->buildUrl("comic/{$comic}/chapter2/{$chapter}", $parameters), ttl: 24 * 60 * 60);
|
||||
$responses = $this->execute($this->buildUrl("comic/{$comic}/chapter2/{$chapter}", $parameters), ttl: 24 * 60 * 60 * 30);
|
||||
|
||||
if ($this->legacyImagesFetch) {
|
||||
$responses['sorted'] = $this->legacyChapter($comic, $chapter);
|
||||
|
||||
@@ -14,7 +14,7 @@ class ImageFetcher
|
||||
'cache' => [
|
||||
'enabled' => true,
|
||||
'prefix' => 'image_fetcher_',
|
||||
'ttl' => 3600,
|
||||
'ttl' => 60 * 60 * 24 * 30,
|
||||
],
|
||||
'http' => [
|
||||
'timeout' => 60,
|
||||
|
||||
Reference in New Issue
Block a user