テストを修正
This commit is contained in:
1 parent
a958ccaa08
commit
50ff2efaaa
4 files changed
+2436
-91
No files matched your search
@@ -23,6 +23,12 @@ class DLsiteResolver implements Resolver
|
||||
|
||||
public function resolve(string $url): Metadata
|
||||
{
|
||||
|
||||
//スマホページの場合はPCページに正規化
|
||||
if (strpos($url, '-touch') !== false) {
|
||||
$url = str_replace('-touch', '', $url);
|
||||
}
|
||||
|
||||
$res = $this->client->get($url);
|
||||
if ($res->getStatusCode() === 200) {
|
||||
$metadata = $this->ogpResolver->parse($res->getBody());
|
||||
|
||||
Reference in new issue
Block a user