テストを修正

This commit is contained in:
eai04191 committed 2019-05-03 11:58:31 +09:00
1 parent a958ccaa08
commit 50ff2efaaa
4 files changed
+2436 -91

No files matched your search

+6
View File
@@ -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());