fix: nyaa domain update (#6872)

This commit is contained in:
dexzopiclone 2021-02-09 06:43:33 +08:00 committed by GitHub
parent 9af9e58075
commit 40d9fb73cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,
};