fix(route): coomer (#17447)
* Update posts.ts * Update namespace.ts * Update utils.ts * Update artist.ts
This commit is contained in:
parent
b4fece47ed
commit
bdd5ad4658
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import type { Namespace } from '@/types';
|
|||
|
||||
export const namespace: Namespace = {
|
||||
name: 'Coomer',
|
||||
url: 'coomer.party',
|
||||
url: 'coomer.su',
|
||||
lang: 'en',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue