summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-06-08 11:10:43 +0200
committerYorhel <git@yorhel.nl>2020-06-08 11:10:45 +0200
commit1a5c6fcd42430e83f4eb2de5c43bb13bd5d96ed2 (patch)
treee0746ca78a78b672e61e8396e726b3d0a6af9f2c /lib
parent12ec31b195163aec2db6f86e5656ff5859d6152a (diff)
ExtLinks: Recognize additional DLSite & DL.Getchu link formats
From https://vndb.org/t14142
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/ExtLinks.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/ExtLinks.pm b/lib/VNDB/ExtLinks.pm
index 00472abd..96b3dd9c 100644
--- a/lib/VNDB/ExtLinks.pm
+++ b/lib/VNDB/ExtLinks.pm
@@ -82,12 +82,12 @@ our %LINKS = (
l_dlsite => { label => 'DLsite (jpn)'
, fmt => 'https://www.dlsite.com/home/work/=/product_id/%s.html'
, fmt2 => sub { sprintf config->{dlsite_url}, shift->{l_dlsite_shop}||'home' }
- , regex => qr{(?:www\.)?dlsite\.com/.*/work/=/product_id/([VR]J[0-9]{6}).*}
+ , regex => qr{(?:www\.)?dlsite\.com/.*/(?:dlaf/=/link/work/aid/.*/id|work/=/product_id)/([VR]J[0-9]{6}).*}
, patt => 'https://www.dlsite.com/<store>/work/=/product_id/<VJ or RJ-code>' },
l_dlsiteen => { label => 'DLsite (eng)'
, fmt => 'https://www.dlsite.com/eng/work/=/product_id/%s.html'
, fmt2 => sub { sprintf config->{dlsite_url}, shift->{l_dlsiteen_shop}||'eng' }
- , regex => qr{(?:www\.)?dlsite\.com/.*/work/=/product_id/([VR]E[0-9]{6}).*}
+ , regex => qr{(?:www\.)?dlsite\.com/.*/(?:dlaf/=/link/work/aid/.*/id|work/=/product_id)/([VR]E[0-9]{6}).*}
, patt => 'https://www.dlsite.com/<store>/work/=/product_id/<VE or RE-code>' },
l_gog => { label => 'GOG'
, fmt => 'https://www.gog.com/game/%s'
@@ -128,7 +128,7 @@ our %LINKS = (
, regex => qr{(?:www\.)?getchu\.com/soft\.phtml\?id=([0-9]+).*} },
l_getchudl => { label => 'DL.Getchu'
, fmt => 'http://dl.getchu.com/i/item%d'
- , regex => qr{(?:dl|order)\.getchu\.com/i/item([0-9]+).*} },
+ , regex => qr{(?:dl|order)\.getchu\.com/(?:i/item|(?:r|index).php.*[?&]gcd=D?0*)([0-9]+).*} },
l_dmm => { label => 'DMM'
, fmt => 'https://%s'
, regex => qr{((?:www\.|dlsoft\.)?dmm\.(?:com|co\.jp)/[^\s]+)}