fix(route): coomer (#17447)

* Update posts.ts

* Update namespace.ts

* Update utils.ts

* Update artist.ts
This commit is contained in:
pink-red 2024-11-05 10:13:13 +04:00 committed by GitHub
parent b4fece47ed
commit bdd5ad4658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ export const route: Route = {
},
radar: [
{
source: ['coomer.party/onlyfans/user/:id', 'coomer.party/'],
source: ['coomer.su/onlyfans/user/:id', 'coomer.su/'],
},
],
name: 'Artist',

View File

@ -2,6 +2,6 @@ import type { Namespace } from '@/types';
export const namespace: Namespace = {
name: 'Coomer',
url: 'coomer.party',
url: 'coomer.su',
lang: 'en',
};

View File

@ -16,13 +16,13 @@ export const route: Route = {
},
radar: [
{
source: ['coomer.party/posts', 'coomer.party/'],
source: ['coomer.su/posts', 'coomer.su/'],
},
],
name: 'Recent Posts',
maintainers: ['nczitzk'],
handler,
url: 'coomer.party/posts',
url: 'coomer.su/posts',
};
async function handler(ctx) {

View File

@ -4,7 +4,7 @@ import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
const fetchItems = async (ctx, currentUrl) => {
const rootUrl = 'https://coomer.party';
const rootUrl = 'https://coomer.su';
currentUrl = `${rootUrl}/${currentUrl}`;
const response = await got({