enable consumet

This commit is contained in:
Pas 2025-06-06 10:21:42 -06:00
parent a49f4b108a
commit e1ea6a4e99
2 changed files with 4 additions and 4 deletions

View file

@ -90,7 +90,7 @@ function embed(provider: { id: string; rank: number; name: string; server: strin
disabled: provider.disabled,
async scrape(ctx): Promise<EmbedOutput> {
const query = JSON.parse(ctx.url);
const apiUrl = `https://consumet.pstream.org/anime/zoro/watch?episodeId=${query.episodeId}&server=${provider.server}`;
const apiUrl = `https://api.1anime.app/anime/zoro/watch?episodeId=${query.episodeId}&server=${provider.server}`;
const data = await ctx.fetcher<StreamData>(apiUrl);

View file

@ -9,7 +9,7 @@ async function consumetScraper(ctx: ShowScrapeContext): Promise<SourcererOutput>
const searchQuery = ctx.media.title;
const page = 1;
const searchUrl = `https://consumet.pstream.org/anime/zoro/${encodeURIComponent(searchQuery)}?page=${page}`;
const searchUrl = `https://api.1anime.app/anime/zoro/${encodeURIComponent(searchQuery)}?page=${page}`;
const searchResponse = await ctx.fetcher<SearchResponse>(searchUrl);
if (!searchResponse?.results?.length) {
@ -21,7 +21,7 @@ async function consumetScraper(ctx: ShowScrapeContext): Promise<SourcererOutput>
searchResponse.results[0];
// Get episode list
const infoUrl = `https://consumet.pstream.org/anime/zoro/info?id=${bestMatch.id}`;
const infoUrl = `https://api.1anime.app/anime/zoro/info?id=${bestMatch.id}`;
const infoResponse = await ctx.fetcher<InfoResponse>(infoUrl);
if (!infoResponse?.episodes?.length) {
@ -67,7 +67,7 @@ export const ConsumetScraper = makeSourcerer({
id: 'consumet',
name: 'Consumet (Anime) 🔥',
rank: 5,
disabled: true,
disabled: false,
flags: [flags.CORS_ALLOWED],
scrapeShow: consumetScraper,
});