mirror of
https://github.com/sussy-code/providers.git
synced 2026-01-11 20:10:17 +00:00
im a little slow
This commit is contained in:
parent
22322c7069
commit
4a0416fa4d
1 changed files with 1 additions and 6 deletions
|
|
@ -5,11 +5,6 @@ import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
|||
|
||||
const baseUrl = 'https://catflix.su';
|
||||
|
||||
function decodeBase64(encodedString: string): string {
|
||||
const decodedString = atob(encodedString);
|
||||
return decodedString;
|
||||
}
|
||||
|
||||
async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promise<SourcererOutput> {
|
||||
const movieId = ctx.media.tmdbId;
|
||||
const mediaTitle = ctx.media.title.replace(/ /g, '-').replace(/[():]/g, '').toLowerCase();
|
||||
|
|
@ -58,7 +53,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
|
||||
const Catflix1 = mainOriginMatch[1];
|
||||
|
||||
const decodedUrl = decodeBase64(Catflix1);
|
||||
const decodedUrl = atob(Catflix1);
|
||||
|
||||
ctx.progress(90);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue