テストを修正

This commit is contained in:
eai04191
2019-05-03 11:58:31 +09:00
parent a958ccaa08
commit 50ff2efaaa
4 changed files with 2436 additions and 91 deletions
+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());