diff options
author | Yorhel <git@yorhel.nl> | 2021-11-12 10:22:58 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-11-12 10:23:02 +0100 |
commit | 5f87c138de277519732176475cd618c9d7ee61f7 (patch) | |
tree | b8a56023aa59a31edda520bee4f5ecd4d1d86116 /lib/VNDB | |
parent | 65ca061793d2917b2a6b524fa7a7d80859e06c69 (diff) |
ExtLinks: Fix JAST USA links again (with an ugly hack)
jastusa.com product URLs now require a "slug" to be added to the URL,
but they don't really care what that is so I just add "/vndb" as a hack.
This way we don't have to update the entire database again.
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/ExtLinks.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VNDB/ExtLinks.pm b/lib/VNDB/ExtLinks.pm index b3caab71..c55f29a5 100644 --- a/lib/VNDB/ExtLinks.pm +++ b/lib/VNDB/ExtLinks.pm @@ -105,8 +105,9 @@ our %LINKS = ( , fmt2 => sub { config->{ shift->{l_jlist_jbox} ? 'jbox_url' : 'jlist_url' } } , regex => qr{(?:www\.)?(?:jlist|jbox)\.com/(?:.+/)?([a-z0-9-]*[0-9][a-z0-9-]*)} }, l_jastusa => { label => 'JAST USA' - , fmt => 'https://jastusa.com/games/%s' - , regex => qr{(?:www\.)?jastusa\.com/games/([a-z0-9_-]+)} }, + , fmt => 'https://jastusa.com/games/%s/vndb' + , regex => qr{(?:www\.)?jastusa\.com/games/([a-z0-9_-]+)/[^/]+} + , patt => 'https://jastusa.com/games/<code>/<title>' }, l_fakku => { label => 'Fakku' , fmt => 'https://www.fakku.net/games/%s' , regex => qr{(?:www\.)?fakku\.(?:net|com)/games/([^/]+)(?:[/\?].*)?} }, |