i may be stupid

This commit is contained in:
erin 2025-09-23 15:18:28 +00:00
parent bd9ced57aa
commit 79797ae4df

View file

@ -2,7 +2,7 @@ import {createServer} from 'node:http';
const sites = [ const sites = [
{ {
pattern: /^(?:www\.)pixiv\.net\/\w+\/artworks\/(\d+)(?:#(\d+))?/i, pattern: /^(?:www\.)?pixiv\.net(?:\/\w+)?\/artworks\/(\d+)(?:#(\d+))?/i,
redirect: match => `https://pixiv.kmn5.li/${match[1]}${match[2] ? `_${parseInt(match[2], 10) - 1}` : ''}`, redirect: match => `https://pixiv.kmn5.li/${match[1]}${match[2] ? `_${parseInt(match[2], 10) - 1}` : ''}`,
}, },
{ {