Revert "Merge pull request #30 from eai04191/feature-KomifloResolver"
This reverts commit b6bf1f99d8242a6bc88a6cc2b4e89bd3abe4cc67, reversing changes made to ef563f8641d9b43d9bfe1b8c971ee7dfa81099de.
This commit is contained in:
parent
3c6f802b69
commit
4ab82ff0e2
@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\MetadataResolver;
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
class KomifloResolver implements Resolver
|
||||
{
|
||||
public function resolve(string $url): Metadata
|
||||
@ -23,8 +21,6 @@ class KomifloResolver implements Resolver
|
||||
$metadata->description = ($json['content']['attributes']['artists']['children'][0]['data']['name'] ?? '?') .
|
||||
' - ' .
|
||||
($json['content']['parents'][0]['data']['title'] ?? '?');
|
||||
$metadata->image = $json['content']['cdn_public'] . '/564_mobile_large_3x/' . $json['content']['named_imgs']['cover']['filename'] . $json['content']['signature'];
|
||||
$metadata->expires_at = Carbon::parse($json['content']['signature_expires'])->setTimezone(config('app.timezone'));
|
||||
|
||||
return $metadata;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user