guh
This commit is contained in:
parent
dc71b78d2f
commit
e50061a99c
1 changed files with 0 additions and 3 deletions
|
@ -47,9 +47,6 @@ module.exports = {
|
|||
const embeds = [];
|
||||
const data = await (await fetch(`${process.env.SEARXNG_INSTANCE}/search?${queryString}`)).json();
|
||||
for (const result of data.results) {
|
||||
if (result.magnetlink)
|
||||
result.magnetlink = `[${result.magnetlink.slice(0, result.magnetlink.indexOf("&"))}](${process.env.BASE_URL}/magnet/${result.magnetlink})`;
|
||||
|
||||
if (result.publishedDate)
|
||||
result.publishedDate = new Date(result.publishedDate).toLocaleDateString('en-us', { weekday: "long", year: "numeric", month: "short", day: "numeric" });
|
||||
|
||||
|
|
Loading…
Reference in a new issue