.btn_followを動的作成するようになったため削除クラス名を.add_followに変更

This commit is contained in:
eai04191 2020-01-10 03:58:24 +09:00
parent 78a255c1e3
commit 1948d5235e
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ class DLsiteResolver implements Resolver
preg_match('~ \[([^\[\]]*)\] (予告作品 )?\| DLsite(がるまに)?$~', $metadata->title, $match);
$makers = explode(' ', $match[1]);
//フォローボタン(.btn_follow)はテキストを含んでしまうことがあるので要素を削除しておく
$followButtonNode = $xpath->query('//*[@class="btn_follow"]')->item(0);
//フォローボタン(.add_follow)はテキストを含んでしまうことがあるので要素を削除しておく
$followButtonNode = $xpath->query('//*[@class="add_follow"]')->item(0);
$followButtonNode->parentNode->removeChild($followButtonNode);
// maker, makerHeadを探す