fix: nyaa domain update (#6872)
This commit is contained in:
parent
9af9e58075
commit
40d9fb73cb
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue