From 40d9fb73cb1ea7080deb6f1dd96e66c947fc44f0 Mon Sep 17 00:00:00 2001 From: dexzopiclone <59357793+dexzopiclone@users.noreply.github.com> Date: Tue, 9 Feb 2021 06:43:33 +0800 Subject: [PATCH] fix: nyaa domain update (#6872) --- lib/routes/nyaa/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/nyaa/search.js b/lib/routes/nyaa/search.js index acb199832..de984b53d 100644 --- a/lib/routes/nyaa/search.js +++ b/lib/routes/nyaa/search.js @@ -12,7 +12,7 @@ module.exports = async (ctx) => { }); const { query = '' } = ctx.params; - const feed = await parser.parseURL(`https://nyaa.uk/?page=rss&c=0_0&f=0&q=${encodeURI(query)}`); + const feed = await parser.parseURL(`https://nyaa.si/?page=rss&c=0_0&f=0&q=${encodeURI(query)}`); feed.items.map((item) => { item.link = item.guid; @@ -24,7 +24,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: feed.title, - link: `https://nyaa.uk/?f=0&c=0_0&q=${query}`, + link: `https://nyaa.si/?f=0&c=0_0&q=${query}`, description: feed.description, item: feed.items, };