冗長な評価を削除
This commit is contained in:
parent
d8e170ff85
commit
c8cee80144
@ -54,7 +54,7 @@ class DLsiteResolver implements Resolver
|
||||
{
|
||||
//アフィリエイトの場合は普通のURLに変換
|
||||
// ID型
|
||||
if (strpos($url, '/dlaf/=/link/') !== false || preg_match('~/dlaf/=(/.+/.+)?/link/~', $url)) {
|
||||
if (preg_match('~/dlaf/=(/.+/.+)?/link/~', $url)) {
|
||||
preg_match('~www\.dlsite\.com/(?P<genre>.+)/dlaf/=(/.+/.+)?/link/work/aid/(?P<AffiliateId>.+)/id/(?P<titleId>..\d+)(\.html)?~', $url, $matches);
|
||||
$url = "https://www.dlsite.com/{$matches['genre']}/work/=/product_id/{$matches['titleId']}.html";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user