From b385480140335c4f1e62e972f259cccfd065c3c1 Mon Sep 17 00:00:00 2001 From: Durgesh Kumar Dwivedi Date: Sat, 9 Nov 2024 22:14:32 +0530 Subject: [PATCH] feat(extractors | providers): add subtitles(tracks) in some of the extractors so that thumbnail preview can be used when progressing using slider, add sflix provider in movies and streamwish extractor in dramacool (#602) --- dist/extractors/gogocdn.d.ts | 8 +- dist/extractors/gogocdn.js | 10 +- dist/extractors/gogocdn.js.map | 2 +- dist/extractors/streamwish.d.ts | 8 +- dist/extractors/streamwish.js | 26 +- dist/extractors/streamwish.js.map | 2 +- dist/extractors/voe.d.ts | 8 +- dist/extractors/voe.js | 34 +- dist/extractors/voe.js.map | 2 +- dist/providers/anime/animefox.js | 2 +- dist/providers/anime/animefox.js.map | 2 +- dist/providers/anime/gogoanime.js | 6 +- dist/providers/anime/gogoanime.js.map | 2 +- dist/providers/anime/monoschinos.js | 7 +- dist/providers/anime/monoschinos.js.map | 2 +- dist/providers/movies/dramacool.js | 6 +- dist/providers/movies/dramacool.js.map | 2 +- dist/providers/movies/index.d.ts | 2 + dist/providers/movies/index.js | 2 + dist/providers/movies/index.js.map | 2 +- dist/providers/movies/kissasian.js | 2 +- dist/providers/movies/kissasian.js.map | 2 +- dist/providers/movies/sflix.d.ts | 39 ++ dist/providers/movies/sflix.js | 450 +++++++++++++++++++++ dist/providers/movies/sflix.js.map | 1 + docs/providers/sflix.md | 425 +++++++++++++++++++ src/extractors/gogocdn.ts | 16 +- src/extractors/streamwish.ts | 28 +- src/extractors/voe.ts | 40 +- src/providers/anime/animefox.ts | 2 +- src/providers/anime/gogoanime.ts | 6 +- src/providers/anime/monoschinos.ts | 10 +- src/providers/movies/dramacool.ts | 8 +- src/providers/movies/index.ts | 2 + src/providers/movies/kissasian.ts | 2 +- src/providers/movies/sflix.ts | 517 ++++++++++++++++++++++++ test/anime/animefox.test.ts | 1 + test/anime/gogoanime.test.ts | 1 + test/anime/monoschinos.test.ts | 1 + test/movies/sflix.test.ts | 37 ++ 40 files changed, 1672 insertions(+), 53 deletions(-) create mode 100644 dist/providers/movies/sflix.d.ts create mode 100644 dist/providers/movies/sflix.js create mode 100644 dist/providers/movies/sflix.js.map create mode 100644 docs/providers/sflix.md create mode 100644 src/providers/movies/sflix.ts create mode 100644 test/movies/sflix.test.ts diff --git a/dist/extractors/gogocdn.d.ts b/dist/extractors/gogocdn.d.ts index 636fd086d..148f36d89 100644 --- a/dist/extractors/gogocdn.d.ts +++ b/dist/extractors/gogocdn.d.ts @@ -1,10 +1,14 @@ -import { VideoExtractor, IVideo } from '../models'; +import { VideoExtractor, IVideo, ISubtitle } from '../models'; declare class GogoCDN extends VideoExtractor { protected serverName: string; protected sources: IVideo[]; private readonly keys; private referer; - extract: (videoUrl: URL) => Promise; + extract: (videoUrl: URL) => Promise<{ + sources: IVideo[]; + } & { + subtitles: ISubtitle[]; + }>; private addSources; private generateEncryptedAjaxParams; private decryptAjaxData; diff --git a/dist/extractors/gogocdn.js b/dist/extractors/gogocdn.js index 42a336e5e..88d0cf987 100644 --- a/dist/extractors/gogocdn.js +++ b/dist/extractors/gogocdn.js @@ -30,8 +30,13 @@ class GogoCDN extends models_1.VideoExtractor { }, }); const decryptedData = await this.decryptAjaxData(encryptedData.data.data); + // console.log(decryptedData.track.tracks); if (!decryptedData.source) throw new Error('No source found. Try a different server.'); + const subtitles = decryptedData.track.tracks.map((track) => ({ + url: track.file, + lang: track.kind, + })); if (decryptedData.source[0].file.includes('.m3u8')) { const resResult = await this.client.get(decryptedData.source[0].file.toString()); const resolutions = resResult.data.match(/(RESOLUTION=)(.*)(\s*?)(\s*.*)/g); @@ -68,7 +73,10 @@ class GogoCDN extends models_1.VideoExtractor { quality: 'backup', }); }); - return this.sources; + return { + sources: this.sources, + subtitles: subtitles, + }; }; this.addSources = async (source) => { if (source.file.includes('m3u8')) { diff --git a/dist/extractors/gogocdn.js.map b/dist/extractors/gogocdn.js.map index f5c90f5d0..be520cddc 100644 --- a/dist/extractors/gogocdn.js.map +++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C,KAAK,CAAC,aAAa,CAAC,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/extractors/streamwish.d.ts b/dist/extractors/streamwish.d.ts index fb94f0ea0..f6206db44 100644 --- a/dist/extractors/streamwish.d.ts +++ b/dist/extractors/streamwish.d.ts @@ -1,7 +1,11 @@ -import { VideoExtractor, IVideo } from '../models'; +import { VideoExtractor, IVideo, ISubtitle } from '../models'; declare class StreamWish extends VideoExtractor { protected serverName: string; protected sources: IVideo[]; - extract: (videoUrl: URL) => Promise; + extract: (videoUrl: URL) => Promise<{ + sources: IVideo[]; + } & { + subtitles: ISubtitle[]; + }>; } export default StreamWish; diff --git a/dist/extractors/streamwish.js b/dist/extractors/streamwish.js index 88c91cf57..34292a97a 100644 --- a/dist/extractors/streamwish.js +++ b/dist/extractors/streamwish.js @@ -8,7 +8,7 @@ class StreamWish extends models_1.VideoExtractor { this.serverName = 'streamwish'; this.sources = []; this.extract = async (videoUrl) => { - var _a, _b; + var _a, _b, _c; try { const options = { headers: { @@ -30,7 +30,6 @@ class StreamWish extends models_1.VideoExtractor { 'User-Agent': utils_1.USER_AGENT, }, }; - // console.log(videoUrl.href,"videoUrl") const { data } = await this.client.get(videoUrl.href, options); // Code adapted from Zenda-Cross (https://github.com/Zenda-Cross/vega-app/blob/main/src/lib/providers/multi/multiGetStream.ts) // Thank you to Zenda-Cross for the original implementation. @@ -56,6 +55,24 @@ class StreamWish extends models_1.VideoExtractor { console.log('No match found'); } const links = (_b = p.match(/file:\s*"([^"]+\.m3u8[^"]*)"/)) !== null && _b !== void 0 ? _b : []; + const subtitleMatches = (_c = p === null || p === void 0 ? void 0 : p.match(/{file:"([^"]+)",(label:"([^"]+)",)?kind:"(thumbnails|captions)"/g)) !== null && _c !== void 0 ? _c : []; + // console.log(subtitleMatches, 'subtitleMatches'); + const subtitles = subtitleMatches.map(sub => { + var _a, _b, _c, _d, _e, _f; + const lang = (_b = (_a = sub === null || sub === void 0 ? void 0 : sub.match(/label:"([^"]+)"/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ''; + const url = (_d = (_c = sub === null || sub === void 0 ? void 0 : sub.match(/file:"([^"]+)"/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ''; + const kind = (_f = (_e = sub === null || sub === void 0 ? void 0 : sub.match(/kind:"([^"]+)"/)) === null || _e === void 0 ? void 0 : _e[1]) !== null && _f !== void 0 ? _f : ''; + if (kind.includes('thumbnail')) { + return { + lang: kind, + url: `https://streamwish.com${url}`, + }; + } + return { + lang: lang, + url: url, + }; + }); let lastLink = null; links.forEach((link) => { if (link.includes('file:"')) { @@ -88,7 +105,10 @@ class StreamWish extends models_1.VideoExtractor { } } catch (e) { } - return this.sources; + return { + sources: this.sources, + subtitles: subtitles, + }; } catch (err) { throw new Error(err.message); diff --git a/dist/extractors/streamwish.js.map b/dist/extractors/streamwish.js.map index 4c5ccb1f7..5e108aa0a 100644 --- a/dist/extractors/streamwish.js.map +++ b/dist/extractors/streamwish.js.map @@ -1 +1 @@ -{"version":3,"file":"streamwish.js","sourceRoot":"","sources":["../../src/extractors/streamwish.ts"],"names":[],"mappings":";;AAAA,sCAAmD;AACnD,oCAAsC;AAEtC,MAAM,UAAW,SAAQ,uBAAc;IAAvC;;QACqB,eAAU,GAAG,YAAY,CAAC;QAC1B,YAAO,GAAa,EAAE,CAAC;QAEjC,YAAO,GAAG,KAAK,EAAE,QAAa,EAAqB,EAAE;;YAC5D,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG;oBACd,OAAO,EAAE;wBACP,MAAM,EACJ,yIAAyI;wBAC3I,iBAAiB,EAAE,GAAG;wBACtB,iBAAiB,EAAE,gBAAgB;wBACnC,eAAe,EAAE,WAAW;wBAC5B,QAAQ,EAAE,QAAQ;wBAClB,MAAM,EAAE,QAAQ,CAAC,MAAM;wBACvB,OAAO,EAAE,QAAQ,CAAC,M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BAE1E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gCAChB,GAAG,EAAE,GAAG;gCACR,OAAO,EAAE,GAAG,OAAO,GAAG;gCACtB,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC;6BAC9B,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;gBAEd,OAAO;oBACL,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,SAAS,EAAE,SAAS;iBACrB,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AACD,kBAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/extractors/voe.d.ts b/dist/extractors/voe.d.ts index 5fb5610f0..76951d5c3 100644 --- a/dist/extractors/voe.d.ts +++ b/dist/extractors/voe.d.ts @@ -1,8 +1,12 @@ -import { IVideo, VideoExtractor } from '../models'; +import { IVideo, VideoExtractor, ISubtitle } from '../models'; declare class Voe extends VideoExtractor { protected serverName: string; protected sources: IVideo[]; private readonly domains; - extract: (videoUrl: URL) => Promise; + extract: (videoUrl: URL) => Promise<{ + sources: IVideo[]; + } & { + subtitles: ISubtitle[]; + }>; } export default Voe; diff --git a/dist/extractors/voe.js b/dist/extractors/voe.js index 4d457385d..a13b6328f 100644 --- a/dist/extractors/voe.js +++ b/dist/extractors/voe.js @@ -9,19 +9,47 @@ class Voe extends models_1.VideoExtractor { this.sources = []; this.domains = ['voe.sx']; this.extract = async (videoUrl) => { + var _a, _b; try { const res = await this.client.get(videoUrl.href); const $ = (0, cheerio_1.load)(res.data); - const url = $('body').html().split('prompt("Node", "')[1].split('");')[0]; - // const quality = $('body').html()!.match(/'video_height': ?([0-9]+),/)![1]; + const scriptContent = $('script').html(); + const pageUrl = scriptContent + ? (_b = (_a = scriptContent.match(/window\.location\.href\s*=\s*'(https:\/\/[^']+)';/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '' + : ''; + const { data } = await this.client.get(pageUrl); + const $$ = (0, cheerio_1.load)(data); + const url = $$('body').html().split('prompt("Node", "')[1].split('");')[0]; + let thumbnailSrc = ''; + $$('script').each((i, el) => { + const scriptContent = $(el).html(); + const regex = /previewThumbnails:\s*{[^}]*src:\s*\["([^"]+)"\]/; + if (scriptContent) { + const match = scriptContent.match(regex); + if (match && match[1]) { + thumbnailSrc = match[1]; + return false; + } + } + }); + const subtitles = [ + { + lang: 'thumbnails', + url: `${videoUrl.origin}${thumbnailSrc}`, + }, + ]; this.sources.push({ url: url, quality: 'default', isM3U8: url.includes('.m3u8'), }); - return this.sources; + return { + sources: this.sources, + subtitles: subtitles, + }; } catch (err) { + console.log(err); throw new Error(err.message); } }; diff --git a/dist/extractors/voe.js.map b/dist/extractors/voe.js.map index 864f46ced..92be4f9c9 100644 --- a/dist/extractors/voe.js.map +++ b/dist/extractors/voe.js.map @@ -1 +1 @@ -{"version":3,"file":"voe.js","sourceRoot":"","sources":["../../src/extractors/voe.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,sCAAmD;AAEnD,MAAM,GAAI,SAAQ,uBAAc;IAAhC;;QACqB,eAAU,GAAG,KAAK,CAAC;QACnB,YAAO,GAAa,EAAE,CAAC;QAEzB,YAAO,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE7B,YAAO,GAAG,KAAK,EAAE,QAAa,EAAqB,EAAE;YAC5D,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACjD,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEzB,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IA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oBACrB,SAAS,EAAE,SAAS;iBACrB,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,GAAG,CAAC"} \ No newline at end of file diff --git a/dist/providers/anime/animefox.js b/dist/providers/anime/animefox.js index 3920187f0..de2c6dea5 100644 --- a/dist/providers/anime/animefox.js +++ b/dist/providers/anime/animefox.js @@ -166,7 +166,7 @@ class AnimeFox extends models_1.AnimeParser { const iframe = $('#iframe-to-load').attr('src') || ''; const streamUrl = `https://goload.io/streaming.php?id=${iframe.split('=')[1]}`; return { - sources: await new extractors_1.GogoCDN(this.proxyConfig).extract(new URL(streamUrl)), + ...(await new extractors_1.GogoCDN(this.proxyConfig).extract(new URL(streamUrl))), }; } catch (err) { diff --git a/dist/providers/anime/animefox.js.map b/dist/providers/anime/animefox.js.map index e9dce0777..51dcbb736 100644 --- a/dist/providers/anime/animefox.js.map +++ b/dist/providers/anime/animefox.js.map @@ -1 +1 @@ -{"version":3,"file":"animefox.js","sourceRoot":"","sources":["../../../src/providers/anime/animefox.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,yCASsB;AAEtB,iDAA2C;AAE3C,MAAM,QAAS,SAAQ,oBAAW;IAAlC;;QACoB,SAAI,GAAG,UAAU,CAAC;QACjB,YAAO,GAAG,qBAAqB,CAAC;QAChC,SAAI,GAAG,4CAA4C,CAAC;QACpD,cAAS,GAAG,gBAAgB,CAAC;QAEhD;;;WAGG;QACM,WAAM,GAAG,KAAK,EAAE,KAAa,EAAE,OAAe,CAAC,EAAkC,EAAE;YAC1F,IAAI,CAAC;gBACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,IAAI,C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AQ,CAAC;AAExB,iBAAiB;AACjB,sCAAsC;AACtC,yDAAyD;AACzD,qEAAqE;AACrE,OAAO;AACP,0BAA0B;AAC1B,QAAQ"} \ No newline at end of file +{"version":3,"file":"animefox.js","sourceRoot":"","sources":["../../../src/providers/anime/animefox.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,yCASsB;AAEtB,iDAA2C;AAE3C,MAAM,QAAS,SAAQ,oBAAW;IAAlC;;QACoB,SAAI,GAAG,UAAU,CAAC;QACjB,YAAO,GAAG,qBAAqB,CAAC;QAChC,SAAI,GAAG,4CAA4C,CAAC;QACpD,cAAS,GAAG,gBAAgB,CAAC;QAEhD;;;WAGG;QACM,WAAM,GAAG,KAAK,EAAE,KAAa,EAAE,OAAe,CAAC,EAAkC,EAAE;YAC1F,IAAI,CAAC;gBACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,IAAI,CAAC,OAAO,mBAAmB,kBAAkB,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAC3E,CAAC;gBAEF,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;gBAErB,MAAM,WAAW,GAAG,CAAC,CAAC,6BAA6B,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAEhG,MAAM,aAAa,GAAmB,EAAE,CAAC;gBAEzC,CAAC,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE;;oBAC3C,IAAI,IAAI,GAAG,SAAS,CAAC;oBACrB,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;wBACjD,KAAK,WAAW;4BACd,IAAI,GAAG,oBAAW,CAAC,EAAE,CAAC;4BACtB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IAAI,EAAE,CAAC;gBACtD,MAAM,SAAS,GAAG,sCAAsC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/E,OAAO;oBACL,GAAG,CAAC,MAAM,IAAI,oBAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;iBACrE,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACnE,CAAC;QACH,CAAC,CAAC;QAEF;;WAEG;QACM,wBAAmB,GAAG,CAAC,SAAiB,EAA6B,EAAE;YAC9E,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,QAAQ,CAAC;AAExB,iBAAiB;AACjB,sCAAsC;AACtC,yDAAyD;AACzD,qEAAqE;AACrE,OAAO;AACP,0BAA0B;AAC1B,QAAQ"} \ No newline at end of file diff --git a/dist/providers/anime/gogoanime.js b/dist/providers/anime/gogoanime.js index c86e03a54..f6c453647 100644 --- a/dist/providers/anime/gogoanime.js +++ b/dist/providers/anime/gogoanime.js @@ -138,7 +138,7 @@ class Gogoanime extends models_1.AnimeParser { case models_1.StreamingServers.GogoCDN: return { headers: { Referer: serverUrl.origin }, - sources: await new extractors_1.GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new extractors_1.GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl)), download: downloadUrl ? downloadUrl : `https://${serverUrl.host}/download${serverUrl.search}`, }; case models_1.StreamingServers.StreamSB: @@ -164,13 +164,13 @@ class Gogoanime extends models_1.AnimeParser { headers: { Referer: serverUrl.origin, }, - sources: await new extractors_1.StreamWish(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new extractors_1.StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)), download: downloadUrl ? downloadUrl : `https://${serverUrl.host}/download${serverUrl.search}`, }; default: return { headers: { Referer: serverUrl.origin }, - sources: await new extractors_1.GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new extractors_1.GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl)), download: downloadUrl ? downloadUrl : `https://${serverUrl.host}/download${serverUrl.search}`, }; } diff --git a/dist/providers/anime/gogoanime.js.map b/dist/providers/anime/gogoanime.js.map index 059078264..29fe3be48 100644 --- a/dist/providers/anime/gogoanime.js.map +++ b/dist/providers/anime/gogoanime.js.map @@ -1 +1 @@ -{"version":3,"file":"gogoanime.js","sourceRoot":"","sources":["../../../src/providers/anime/gogoanime.ts"],"names":[],"mappings":";;AACA,qCAA+B;AAE/B,yCAasB;AACtB,uCAAyC;AACzC,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAQjC,YAAY,aAAsB,EAAE,KAAmB,EAAE,OAAsB;QAC7E,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QARJ,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,qBAAqB,CAAC;QAChC,SAAI,GACrB,2GAA2G,CAAC;QAC3F,cAAS,GAAG,iBAAiB,CAAC;QAChC,YAAO,GAAG,+BAA+B,CAAC;QAmB3D;;;;WAIG;QACM,WAAM,GAAG,KAAK,EAAE,KAAa,EAAE,OAAe,CAAC,EAAkC,EAAE;YAC1F,MAAM,YAAY,GAA0B;gBAC1C,WAAW,EAAE,IAAI;gBACjB,WAAW,EAAE,KAAK;gBAClB,OAAO,EAAE,EAAE;aACZ,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAC/B,GAAG,IAAI,CAAC,OAAO,wBAAwB,kBAAkB,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAChF,CAAC;gBAEF,MA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AI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;wBACvC,MAAM;wBACN,WAAW;qBACZ,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBACH,MAAM,WAAW,GAAG,CAAC,CAAC,CAAC,iDAAiD,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;gBACtG,OAAO;oBACL,WAAW,EAAE,IAAI;oBACjB,WAAW,EAAE,WAAW;oBACxB,OAAO,EAAE,SAAS;iBACnB,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACnE,CAAC;QACH,CAAC,CAAC;QAnjBA,IAAI,CAAC,OAAO,GAAG,aAAa;YAC1B,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC;gBAC3E,CAAC,CAAC,aAAa;gBACf,CAAC,CAAC,UAAU,aAAa,EAAE;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QACjB,IAAI,KAAK,EAAE,CAAC;YACV,qCAAqC;YACrC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,iCAAiC;YACjC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;CAuiBF;AAED,iBAAiB;AACjB,kCAAkC;AAClC,2GAA2G;AAC3G,yBAAyB;AACzB,QAAQ;AAER,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"gogoanime.js","sourceRoot":"","sources":["../../../src/providers/anime/gogoanime.ts"],"names":[],"mappings":";;AACA,qCAA+B;AAE/B,yCAasB;AACtB,uCAAyC;AACzC,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAQjC,YAAY,aAAsB,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;gBAC3E,CAAC,CAAC,aAAa;gBACf,CAAC,CAAC,UAAU,aAAa,EAAE;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QACjB,IAAI,KAAK,EAAE,CAAC;YACV,qCAAqC;YACrC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,iCAAiC;YACjC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;CAuiBF;AAED,iBAAiB;AACjB,kCAAkC;AAClC,2GAA2G;AAC3G,yBAAyB;AACzB,QAAQ;AAER,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/providers/anime/monoschinos.js b/dist/providers/anime/monoschinos.js index 4e1f1c580..7ba4954e1 100644 --- a/dist/providers/anime/monoschinos.js +++ b/dist/providers/anime/monoschinos.js @@ -92,13 +92,16 @@ class MonosChinos extends models_1.AnimeParser { const $ = (0, cheerio_1.load)(res.data); let decodedUrl; let sources; + let subtitles = []; // filemoon => js code too obfuscated // mixdrop => 403 forbidden // doodstream => loads infinitely // mp4upload => can't access try { decodedUrl = await __classPrivateFieldGet(this, _MonosChinos_getServerDecodedUrl, "f").call(this, $, models_1.StreamingServers.Voe); - sources = await new extractors_1.Voe().extract(new URL(decodedUrl.replace('voe.sx', 'thomasalthoughhear.com'))); + const voeResult = await new extractors_1.Voe().extract(new URL(decodedUrl.replace('voe.sx', 'thomasalthoughhear.com'))); + sources = voeResult.sources; + subtitles = voeResult === null || voeResult === void 0 ? void 0 : voeResult.subtitles; } catch (err) { decodedUrl = await __classPrivateFieldGet(this, _MonosChinos_getServerDecodedUrl, "f").call(this, $, models_1.StreamingServers.StreamTape); @@ -109,7 +112,7 @@ class MonosChinos extends models_1.AnimeParser { throw new Error('Source not found.'); } } - return { sources: sources }; + return { sources: sources, subtitles: subtitles }; } catch (err) { throw new Error(err.message); diff --git a/dist/providers/anime/monoschinos.js.map b/dist/providers/anime/monoschinos.js.map index 13c37a219..7c60b5885 100644 --- a/dist/providers/anime/monoschinos.js.map +++ b/dist/providers/anime/monoschinos.js.map @@ -1 +1 @@ -{"version":3,"file":"monoschinos.js","sourceRoot":"","sources":["../../../src/providers/anime/monoschinos.ts"],"names":[],"mappings":";;;;;;;;AAAA,qCAA2C;AAE3C,iDAAmD;AACnD,yCASsB;AAEtB,MAAM,WAAY,SAAQ,oBAAW;IAArC;;QACoB,SAAI,GAAG,aAAa,CAAC;QACpB,YAAO,GAAG,0BAA0B,CAAC;QACrC,SAAI,GAAG,oDAAoD,CAAC;QAC5D,cAAS,GAAG,mBAAmB,CAAC;QAEnD;;WAEG;QACM,WAAM,GAAG,KAAK,EAAE,KAAa,EAAkC,EAAE;YACxE,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,aAAa,KAAK,EAAE,CAAC,CAAC;gBACvE,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEzB,IAAI,CAAC,CAAC;oBAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;gBAE/B,MAAM,YAAY,GAGd;oBACF,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,EAAE;iBACZ,CAAC;gBAEF,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE;;oBACxC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;wBACxB,EAAE,EAAE,MAAA,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,0CAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAE;wBACtD,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;wBA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B,CAAE,CAAC;gBAE1D,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YACjE,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,EAAC;QAEF;;;WAGG;QACM,wBAAmB,GAAG,CAAC,SAAiB,EAA6B,EAAE;YAC9E,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC,CAAC;IACJ,CAAC;CAAA;;AAED,kBAAe,WAAW,CAAC;AAE3B,2BAA2B;AAE3B,kDAAkD;AAClD,8BAA8B;AAE9B,iEAAiE;AACjE,8BAA8B;AAE9B,6FAA6F;AAC7F,kCAAkC;AAClC,YAAY;AACZ,YAAY;AACZ,iCAAiC;AACjC,4BAA4B;AAC5B,sCAAsC;AACtC,YAAY;AACZ,YAAY;AACZ,wBAAwB;AACxB,yBAAyB;AACzB,2BAA2B;AAC3B,kBAAkB;AAElB,8DAA8D;AAC9D,6CAA6C;AAC7C,+FAA+F;AAC/F,sBAAsB;AACtB,qGAAqG;AACrG,YAAY;AACZ,2DAA2D;AAC3D,8BAA8B;AAE9B,iEAAiE;AACjE,8BAA8B;AAE9B,6FAA6F;AAC7F,kCAAkC;AAClC,YAAY;AACZ,YAAY;AACZ,iCAAiC;AACjC,4BAA4B;AAC5B,sCAAsC;AACtC,YAAY;AACZ,YAAY;AACZ,wBAAwB;AACxB,yBAAyB;AACzB,2BAA2B;AAC3B,kBAAkB;AAElB,8DAA8D;AAC9D,6CAA6C;AAC7C,+FAA+F;AAC/F,sBAAsB;AACtB,qGAAqG;AACrG,YAAY;AACZ,MAAM"} \ No newline at end of file +{"version":3,"file":"monoschinos.js","sourceRoot":"","sources":["../../../src/providers/anime/monoschinos.ts"],"names":[],"mappings":";;;;;;;;AAAA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AAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YACjE,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,EAAC;QAEF;;;WAGG;QACM,wBAAmB,GAAG,CAAC,SAAiB,EAA6B,EAAE;YAC9E,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC,CAAC;IACJ,CAAC;CAAA;;AAED,kBAAe,WAAW,CAAC;AAE3B,2BAA2B;AAE3B,kDAAkD;AAClD,8BAA8B;AAE9B,iEAAiE;AACjE,8BAA8B;AAE9B,6FAA6F;AAC7F,kCAAkC;AAClC,YAAY;AACZ,YAAY;AACZ,iCAAiC;AACjC,4BAA4B;AAC5B,sCAAsC;AACtC,YAAY;AACZ,YAAY;AACZ,wBAAwB;AACxB,yBAAyB;AACzB,2BAA2B;AAC3B,kBAAkB;AAElB,8DAA8D;AAC9D,6CAA6C;AAC7C,+FAA+F;AAC/F,sBAAsB;AACtB,qGAAqG;AACrG,YAAY;AACZ,2DAA2D;AAC3D,8BAA8B;AAE9B,iEAAiE;AACjE,8BAA8B;AAE9B,6FAA6F;AAC7F,kCAAkC;AAClC,YAAY;AACZ,YAAY;AACZ,iCAAiC;AACjC,4BAA4B;AAC5B,sCAAsC;AACtC,YAAY;AACZ,YAAY;AACZ,wBAAwB;AACxB,yBAAyB;AACzB,2BAA2B;AAC3B,kBAAkB;AAElB,8DAA8D;AAC9D,6CAA6C;AAC7C,+FAA+F;AAC/F,sBAAsB;AACtB,qGAAqG;AACrG,YAAY;AACZ,MAAM"} \ No newline at end of file diff --git a/dist/providers/movies/dramacool.js b/dist/providers/movies/dramacool.js index 9e7a6b286..c44d60fc6 100644 --- a/dist/providers/movies/dramacool.js +++ b/dist/providers/movies/dramacool.js @@ -7,7 +7,7 @@ class DramaCool extends models_1.MovieParser { constructor() { super(...arguments); this.name = 'DramaCool'; - this.baseUrl = 'https://dramacool.com.pa'; + this.baseUrl = 'https://asianc.co'; this.logo = 'https://play-lh.googleusercontent.com/IaCb2JXII0OV611MQ-wSA8v_SAs9XF6E3TMDiuxGGXo4wp9bI60GtDASIqdERSTO5XU'; this.classPath = 'MOVIES.DramaCool'; this.supportedTypes = new Set([models_1.TvType.MOVIE, models_1.TvType.TVSERIES]); @@ -158,6 +158,10 @@ class DramaCool extends models_1.MovieParser { return { sources: await new extractors_1.StreamSB(this.proxyConfig, this.adapter).extract(serverUrl), }; + case models_1.StreamingServers.StreamWish: + return { + ...(await new extractors_1.StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)), + }; default: throw new Error('Server not supported'); } diff --git a/dist/providers/movies/dramacool.js.map b/dist/providers/movies/dramacool.js.map index 8f328f2c9..048003274 100644 --- a/dist/providers/movies/dramacool.js.map +++ b/dist/providers/movies/dramacool.js.map @@ -1 +1 @@ -{"version":3,"file":"dramacool.js","sourceRoot":"","sources":["../../../src/providers/movies/dramacool.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,iDAA4E;AAC5E,yCAUsB;AAEtB,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,0BAA0B,CAAC;QACrC,SAAI,GACrB,2GAA2G,CAAC;QAC3F,cAAS,GAAG,kBAAkB,CAAC;QACzC,mBAAc,GAAG,IAAI,GAAG,CAAC,CAAC,eAAM,CAAC,KAAK,EAAE,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAE1D,WAAM,GAAG,KAAK,EAAE,KAAa,EAAE,OAAe,CAAC,EAAkC,EAAE;YAC1F,IAAI,CAAC;gBACH,MAAM,YAAY,GAA0B;oBAC1C,WAAW,EAAE,IAAI;oBACjB,UAAU,EAAE,IAAI;oBAChB,WAAW,EAAE,KAAK;oB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AAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzE,IAAI,QAAQ,IAAI,SAAS,IAAI,QAAQ,IAAI,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC1E,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC1D,IAAI,OAAO,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;oBAAE,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;qBACpF,IAAI,OAAO,CAAC,WAAW;oBAAE,OAAO,CAAC,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC;YAC9D,CAAC;iBAAM,IAAI,OAAO,CAAC,WAAW;gBAAE,OAAO,CAAC,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC;YAE9D,OAAO,OAAO,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;CAiBF;AACD,+BAA+B;AAC/B,iBAAiB;AACjB,uCAAuC;AACvC,0CAA0C;AAC1C,QAAQ;AAER,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/providers/movies/index.d.ts b/dist/providers/movies/index.d.ts index c614801f3..b679eb732 100644 --- a/dist/providers/movies/index.d.ts +++ b/dist/providers/movies/index.d.ts @@ -7,6 +7,7 @@ import MovieHdWatch from './movidhdwatch'; import SmashyStream from './smashystream'; import Turkish from './turkish123'; import ViewAsian from './viewAsian'; +import SFlix from './sflix'; declare const _default: { DramaCool: typeof DramaCool; FlixHQ: typeof FlixHQ; @@ -17,5 +18,6 @@ declare const _default: { SmashyStream: typeof SmashyStream; ViewAsian: typeof ViewAsian; Turkish: typeof Turkish; + SFlix: typeof SFlix; }; export default _default; diff --git a/dist/providers/movies/index.js b/dist/providers/movies/index.js index 513cc6e9f..d1cd61eb8 100644 --- a/dist/providers/movies/index.js +++ b/dist/providers/movies/index.js @@ -12,6 +12,7 @@ const movidhdwatch_1 = __importDefault(require("./movidhdwatch")); const smashystream_1 = __importDefault(require("./smashystream")); const turkish123_1 = __importDefault(require("./turkish123")); const viewAsian_1 = __importDefault(require("./viewAsian")); +const sflix_1 = __importDefault(require("./sflix")); exports.default = { DramaCool: dramacool_1.default, FlixHQ: flixhq_1.default, @@ -22,5 +23,6 @@ exports.default = { SmashyStream: smashystream_1.default, ViewAsian: viewAsian_1.default, Turkish: turkish123_1.default, + SFlix: sflix_1.default, }; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/providers/movies/index.js.map b/dist/providers/movies/index.js.map index d104d575e..96d902cfa 100644 --- a/dist/providers/movies/index.js.map +++ b/dist/providers/movies/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/movies/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,sDAA8B;AAC9B,wDAAgC;AAChC,kDAA0B;AAC1B,4DAAoC;AACpC,kEAA0C;AAC1C,kEAA0C;AAC1C,8DAAmC;AACnC,4DAAoC;AAEpC,kBAAe;IACb,SAAS,EAAT,mBAAS;IACT,MAAM,EAAN,gBAAM;IACN,OAAO,EAAP,iBAAO;IACP,IAAI,EAAJ,cAAI;IACJ,SAAS,EAAT,mBAAS;IACT,YAAY,EAAZ,sBAAY;IACZ,YAAY,EAAZ,sBAAY;IACZ,SAAS,EAAT,mBAAS;IACT,OAAO,EAAP,oBAAO;CACR,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/movies/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,sDAA8B;AAC9B,wDAAgC;AAChC,kDAA0B;AAC1B,4DAAoC;AACpC,kEAA0C;AAC1C,kEAA0C;AAC1C,8DAAmC;AACnC,4DAAoC;AACpC,oDAA4B;AAE5B,kBAAe;IACb,SAAS,EAAT,mBAAS;IACT,MAAM,EAAN,gBAAM;IACN,OAAO,EAAP,iBAAO;IACP,IAAI,EAAJ,cAAI;IACJ,SAAS,EAAT,mBAAS;IACT,YAAY,EAAZ,sBAAY;IACZ,YAAY,EAAZ,sBAAY;IACZ,SAAS,EAAT,mBAAS;IACT,OAAO,EAAP,oBAAO;IACP,KAAK,EAAL,eAAK;CACN,CAAC"} \ No newline at end of file diff --git a/dist/providers/movies/kissasian.js b/dist/providers/movies/kissasian.js index 351ab0041..288a3a154 100644 --- a/dist/providers/movies/kissasian.js +++ b/dist/providers/movies/kissasian.js @@ -125,7 +125,7 @@ class KissAsian extends models_1.MovieParser { }; case models_1.StreamingServers.StreamWish: return { - sources: await new extractors_1.StreamWish(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new extractors_1.StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)), }; case models_1.StreamingServers.Mp4Upload: return { diff --git a/dist/providers/movies/kissasian.js.map b/dist/providers/movies/kissasian.js.map index 64dda9175..33e796f96 100644 --- a/dist/providers/movies/kissasian.js.map +++ b/dist/providers/movies/kissasian.js.map @@ -1 +1 @@ -{"version":3,"file":"kissasian.js","sourceRoot":"","sources":["../../../src/providers/movies/kissasian.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,yCAUsB;AACtB,iDAAkE;AAClE,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,SAAI,GAAG,8CAA8C,CAAC;QACtD,cAAS,GAAG,kBAAkB,CAAC;QACzC,mBAAc,GAAG,IAAI,GAAG,CAAC,CAAC,eAAM,CAAC,KAAK,EAAE,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAE1D,WAAM,GAAG,KAAK,EAAE,KA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O,CAAC,EAAE;gBAC3B,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;oBACrB,KAAK,IAAI;wBACP,OAAO,CAAC,IAAI,GAAG,yBAAgB,CAAC,OAAO,CAAC;wBACxC,MAAM;oBACR,KAAK,IAAI;wBACP,OAAO,CAAC,IAAI,GAAG,yBAAgB,CAAC,UAAU,CAAC;wBAC3C,MAAM;oBACR,KAAK,IAAI;wBACP,OAAO,CAAC,IAAI,GAAG,yBAAgB,CAAC,SAAS,CAAC;wBAC1C,MAAM;oBACR;wBACE,MAAM;gBACV,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,cAAc,CAAC;QACxB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;CA2CF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"kissasian.js","sourceRoot":"","sources":["../../../src/providers/movies/kissasian.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,yCAUsB;AACtB,iDAAkE;AAClE,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,SAAI,GAAG,8CAA8C,CAAC;QACtD,cAAS,GAAG,kBAAkB,CAAC;QACzC,mBAAc,GAAG,IAAI,GAAG,CAAC,CAAC,eAAM,CAAC,KAAK,EAAE,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAE1D,WAAM,GAAG,KAAK,EAAE,KAAa,EAAE,OAAe,CAAC,EAAkC,EAAE;YAC1F,IAAI,CAAC;gBACH,MAAM,YAAY,GAA0B;oBAC1C,WAAW,EAAE,IAAI;oBACjB,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,EAAE;iBACZ,CAAC;gBAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,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BAC3C,MAAM;oBACR,KAAK,IAAI;wBACP,OAAO,CAAC,IAAI,GAAG,yBAAgB,CAAC,SAAS,CAAC;wBAC1C,MAAM;oBACR;wBACE,MAAM;gBACV,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,cAAc,CAAC;QACxB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;CA2CF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/providers/movies/sflix.d.ts b/dist/providers/movies/sflix.d.ts new file mode 100644 index 000000000..1577e4057 --- /dev/null +++ b/dist/providers/movies/sflix.d.ts @@ -0,0 +1,39 @@ +import { MovieParser, TvType, IMovieInfo, IEpisodeServer, StreamingServers, ISource, IMovieResult, ISearch } from '../../models'; +declare class SFlix extends MovieParser { + readonly name = "SFlix"; + protected baseUrl: string; + protected logo: string; + protected classPath: string; + supportedTypes: Set; + /** + * + * @param query search query string + * @param page page number (default 1) (optional) + */ + search: (query: string, page?: number) => Promise>; + /** + * + * @param mediaId media link or id + */ + fetchMediaInfo: (mediaId: string) => Promise; + /** + * + * @param episodeId episode id + * @param mediaId media id + * @param server server type (default `VidCloud`) (optional) + */ + fetchEpisodeSources: (episodeId: string, mediaId: string, server?: StreamingServers) => Promise; + /** + * + * @param episodeId takes episode link or movie id + * @param mediaId takes movie link or id (found on movie info object) + */ + fetchEpisodeServers: (episodeId: string, mediaId: string) => Promise; + fetchRecentMovies: () => Promise; + fetchRecentTvShows: () => Promise; + fetchTrendingMovies: () => Promise; + fetchTrendingTvShows: () => Promise; + fetchByCountry: (country: string, page?: number) => Promise>; + fetchByGenre: (genre: string, page?: number) => Promise>; +} +export default SFlix; diff --git a/dist/providers/movies/sflix.js b/dist/providers/movies/sflix.js new file mode 100644 index 000000000..35cde1b7a --- /dev/null +++ b/dist/providers/movies/sflix.js @@ -0,0 +1,450 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const cheerio_1 = require("cheerio"); +const models_1 = require("../../models"); +const extractors_1 = require("../../extractors"); +class SFlix extends models_1.MovieParser { + constructor() { + super(...arguments); + this.name = 'SFlix'; + this.baseUrl = 'https://sflix.to'; + this.logo = 'https://img.sflix.to/xxrz/100x100/100/a2/33/a233d4c4a1426ca77ec1d34deec62f71/a233d4c4a1426ca77ec1d34deec62f71.png'; + this.classPath = 'MOVIES.SFlix'; + this.supportedTypes = new Set([models_1.TvType.MOVIE, models_1.TvType.TVSERIES]); + /** + * + * @param query search query string + * @param page page number (default 1) (optional) + */ + this.search = async (query, page = 1) => { + const searchResult = { + currentPage: page, + hasNextPage: false, + results: [], + }; + try { + const { data } = await this.client.get(`${this.baseUrl}/search/${query.replace(/[\W_]+/g, '-')}?page=${page}`); + const $ = (0, cheerio_1.load)(data); + const navSelector = 'div.pre-pagination:nth-child(3) > nav:nth-child(1) > ul:nth-child(1)'; + searchResult.hasNextPage = + $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false; + $('.film_list-wrap > div.flw-item').each((i, el) => { + var _a; + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + searchResult.results.push({ + id: (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1), + title: $(el).find('div.film-detail > h2 > a').attr('title'), + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate, + seasons: releaseDate.includes('SS') ? parseInt(releaseDate.split('SS')[1]) : undefined, + type: $(el).find('div.film-detail > div.fd-infor > span:nth-child(2)').text() === 'Movie' + ? models_1.TvType.MOVIE + : models_1.TvType.TVSERIES, + }); + }); + return searchResult; + } + catch (err) { + throw new Error(err.message); + } + }; + /** + * + * @param mediaId media link or id + */ + this.fetchMediaInfo = async (mediaId) => { + var _a; + if (!mediaId.startsWith(this.baseUrl)) { + mediaId = `${this.baseUrl}/${mediaId}`; + } + const movieInfo = { + id: mediaId.split('to/').pop(), + title: '', + url: mediaId, + }; + try { + const { data } = await this.client.get(mediaId); + const $ = (0, cheerio_1.load)(data); + const recommendationsArray = []; + $('div.container > section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item').each((i, el) => { + var _a, _b, _c; + recommendationsArray.push({ + id: (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1), + title: $(el).find('div.film-detail > h3.film-name > a').text(), + image: $(el).find('div.film-poster > img').attr('data-src'), + duration: (_b = $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text().replace('m', '')) !== null && _b !== void 0 ? _b : null, + type: $(el).find('div.film-detail > div.fd-infor > span.fdi-item').eq(1).text().trim().toLowerCase() === + 'tv' + ? models_1.TvType.TVSERIES + : (_c = models_1.TvType.MOVIE) !== null && _c !== void 0 ? _c : null, + }); + }); + const uid = $('.detail_page-watch').attr('data-id'); + movieInfo.cover = (_a = $('.cover_follow').attr('style')) === null || _a === void 0 ? void 0 : _a.slice(22).replace(')', '').replace(';', ''); + movieInfo.title = $('.heading-name > a:nth-child(1)').text(); + movieInfo.image = $('.dp-i-c-poster > div:nth-child(1) > img:nth-child(1)').attr('src'); + movieInfo.description = $('.description') + .text() + .replace(/^Overview:\s*/i, '') + .replace(/\s+/g, ' ') + .trim(); + movieInfo.type = movieInfo.id.split('/')[0] === 'tv' ? models_1.TvType.TVSERIES : models_1.TvType.MOVIE; + movieInfo.releaseDate = $('div.row > div.col-xl-5 .row-line') + .eq(0) + .text() + .replace('Released: ', '') + .trim(); + movieInfo.genres = $('div.row >div.col-xl-5 .row-line') + .eq(1) + .find('a') + .map((i, el) => $(el).text().split('&')) + .get() + .map(v => v.trim()); + movieInfo.casts = $('div.row > div.col-xl-5 .row-line') + .eq(2) + .find('a') + .map((i, el) => $(el).text()) + .get(); + movieInfo.tags = $('div.row-tags > h2') + .map((i, el) => $(el).text().replace(/\s+/g, ' ').trim()) + .get(); + movieInfo.production = $('div.row > div.col-xl-6 .row-line') + .eq(2) + .find('a') + .map((i, el) => $(el).text().trim()) + .get() + .join(', '); + movieInfo.country = $('div.row > div.col-xl-6 .row-line').eq(1).find('a').text().trim(); + movieInfo.duration = $('div.row > div.col-xl-6 .row-line') + .eq(0) + .text() + .replace('Duration: ', '') + .replace(/\s+/g, ' ') + .trim(); + movieInfo.rating = parseFloat($('div.film-stats > div.fs-item > span.imdb').text().replace('IMDB: ', '')); + movieInfo.recommendations = recommendationsArray; + const ajaxReqUrl = (id, type, isSeasons = false) => `${this.baseUrl}/ajax/${type === 'movie' ? type : `v2/${type}`}/${isSeasons ? 'seasons' : 'episodes'}/${id}`; + if (movieInfo.type === models_1.TvType.TVSERIES) { + const { data } = await this.client.get(ajaxReqUrl(uid, 'tv', true)); + const $$ = (0, cheerio_1.load)(data); + const seasonsIds = $$('.dropdown-menu > a') + .map((i, el) => $(el).attr('data-id')) + .get(); + movieInfo.episodes = []; + let season = 1; + for (const id of seasonsIds) { + const { data } = await this.client.get(ajaxReqUrl(id, 'season')); + const $$$ = (0, cheerio_1.load)(data); + $$$('.swiper-container > .swiper-wrapper > .swiper-slide') + .map((i, el) => { + var _a; + const episode = { + id: $$$(el).find('div.flw-item').attr('id').split('-')[1], + image: $$$(el).find('div.flw-item > a > img').attr('src'), + title: $$$(el).find('div.flw-item > a > img').attr('title'), + number: parseInt($$$(el).find('div.flw-item > a > img').attr('title').split(':')[0].slice(8).trim()), + season: season, + url: `${this.baseUrl}/ajax/v2/episode/servers/${$$$(el).find('div.flw-item').attr('id').split('-')[1]}`, + }; + (_a = movieInfo.episodes) === null || _a === void 0 ? void 0 : _a.push(episode); + }) + .get(); + season++; + } + } + else { + movieInfo.episodes = [ + { + id: uid, + title: movieInfo.title, + url: `${this.baseUrl}/ajax/movie/episodes/${uid}`, + }, + ]; + } + return movieInfo; + } + catch (err) { + console.log(err, 'err'); + throw new Error(err.message); + } + }; + /** + * + * @param episodeId episode id + * @param mediaId media id + * @param server server type (default `VidCloud`) (optional) + */ + this.fetchEpisodeSources = async (episodeId, mediaId, server = models_1.StreamingServers.UpCloud) => { + if (episodeId.startsWith('http')) { + const serverUrl = new URL(episodeId); + switch (server) { + case models_1.StreamingServers.Voe: + return { + headers: { Referer: serverUrl.href }, + ...(await new extractors_1.Voe(this.proxyConfig, this.adapter).extract(serverUrl)), + }; + case models_1.StreamingServers.VidCloud: + return { + headers: { Referer: serverUrl.href }, + ...(await new extractors_1.VidCloud(this.proxyConfig, this.adapter).extract(serverUrl, true)), + }; + case models_1.StreamingServers.UpCloud: + return { + headers: { Referer: serverUrl.href }, + ...(await new extractors_1.VidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), + }; + default: + return { + headers: { Referer: serverUrl.href }, + sources: await new extractors_1.MixDrop(this.proxyConfig, this.adapter).extract(serverUrl), + }; + } + } + try { + const servers = await this.fetchEpisodeServers(episodeId, mediaId); + const i = servers.findIndex(s => s.name === server); + if (i === -1) { + throw new Error(`Server ${server} not found`); + } + const { data } = await this.client.get(`${this.baseUrl}/ajax/get_link/${servers[i].url.split('.').slice(-1).shift()}`); + const serverUrl = new URL(data.link); + return await this.fetchEpisodeSources(serverUrl.href, mediaId, server); + } + catch (err) { + console.log(err, 'err'); + throw new Error(err.message); + } + }; + /** + * + * @param episodeId takes episode link or movie id + * @param mediaId takes movie link or id (found on movie info object) + */ + this.fetchEpisodeServers = async (episodeId, mediaId) => { + if (!episodeId.startsWith(this.baseUrl + '/ajax') && !mediaId.includes('movie')) + episodeId = `${this.baseUrl}/ajax/v2/episode/servers/${episodeId}`; + else + episodeId = `${this.baseUrl}/ajax/movie/episodes/${episodeId}`; + try { + const { data } = await this.client.get(episodeId); + const $ = (0, cheerio_1.load)(data); + const servers = $('.ulclear > li') + .map((i, el) => { + const server = { + name: mediaId.includes('movie') + ? $(el).find('a').find('span').text().trim().toLowerCase() + : $(el).find('a').find('span').text().trim().toLowerCase(), + url: `${this.baseUrl}/${mediaId}.${!mediaId.includes('movie') ? $(el).find('a').attr('data-id') : $(el).find('a').attr('data-id')}`.replace(!mediaId.includes('movie') ? /\/tv\// : /\/movie\//, !mediaId.includes('movie') ? '/watch-tv/' : '/watch-movie/'), + }; + return server; + }) + .get(); + return servers; + } + catch (err) { + throw new Error(err.message); + } + }; + this.fetchRecentMovies = async () => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = (0, cheerio_1.load)(data); + const movies = $('section.block_area:contains("Latest Movies") > div:nth-child(2) > div:nth-child(1) > div.flw-item') + .map((i, el) => { + var _a; + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + const movie = { + id: (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1), + title: $(el).find('div.film-detail > h3.film-name > a').attr('title'), + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate, + rating: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text() || null, + type: models_1.TvType.MOVIE, + }; + return movie; + }) + .get(); + return movies; + } + catch (err) { + throw new Error(err.message); + } + }; + this.fetchRecentTvShows = async () => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = (0, cheerio_1.load)(data); + const tvshows = $('section.block_area:contains("Latest TV Shows") > div:nth-child(2) > div:nth-child(1) > div.flw-item') + .map((i, el) => { + var _a; + const tvshow = { + id: (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1), + title: $(el).find('div.film-detail > h3.film-name > a').attr('title'), + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0] || null, + latestEpisode: $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1] || null, + type: models_1.TvType.TVSERIES, + }; + return tvshow; + }) + .get(); + return tvshows; + } + catch (err) { + throw new Error(err.message); + } + }; + this.fetchTrendingMovies = async () => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = (0, cheerio_1.load)(data); + const movies = $('div#trending-movies div.film_list-wrap div.flw-item') + .map((i, el) => { + var _a; + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + const movie = { + id: (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1), + title: $(el).find('div.film-detail > h3.film-name > a').attr('title'), + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate, + rating: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text() || null, + type: models_1.TvType.MOVIE, + }; + return movie; + }) + .get(); + return movies; + } + catch (err) { + throw new Error(err.message); + } + }; + this.fetchTrendingTvShows = async () => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = (0, cheerio_1.load)(data); + const tvshows = $('div#trending-tv div.film_list-wrap div.flw-item') + .map((i, el) => { + var _a; + const tvshow = { + id: (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1), + title: $(el).find('div.film-detail > h3.film-name > a').attr('title'), + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0] || null, + latestEpisode: $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1] || null, + type: models_1.TvType.TVSERIES, + }; + return tvshow; + }) + .get(); + return tvshows; + } + catch (err) { + throw new Error(err.message); + } + }; + this.fetchByCountry = async (country, page = 1) => { + const result = { + currentPage: page, + hasNextPage: false, + results: [], + }; + const navSelector = 'div.pre-pagination:nth-child(3) > nav:nth-child(1) > ul:nth-child(1)'; + try { + const { data } = await this.client.get(`${this.baseUrl}/country/${country}/?page=${page}`); + const $ = (0, cheerio_1.load)(data); + result.hasNextPage = + $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false; + $('div.container > section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item') + .each((i, el) => { + var _a, _b, _c, _d, _e, _f; + const resultItem = { + id: (_b = (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1)) !== null && _b !== void 0 ? _b : '', + title: (_c = $(el).find('div.film-detail > h2.film-name > a').attr('title')) !== null && _c !== void 0 ? _c : '', + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + type: ((_d = $(el).find('div.film-poster > a').attr('href')) === null || _d === void 0 ? void 0 : _d.slice(1).split('/')[0].toLowerCase()) === 'movie' + ? models_1.TvType.MOVIE + : models_1.TvType.TVSERIES, + }; + const season = (_e = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0]) !== null && _e !== void 0 ? _e : null; + const latestEpisode = (_f = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1]) !== null && _f !== void 0 ? _f : null; + if (resultItem.type === models_1.TvType.TVSERIES) { + resultItem.season = season; + resultItem.latestEpisode = latestEpisode; + } + else { + resultItem.rating = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + resultItem.releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + } + result.results.push(resultItem); + }) + .get(); + return result; + } + catch (err) { + throw new Error(err.message); + } + }; + this.fetchByGenre = async (genre, page = 1) => { + const result = { + currentPage: page, + hasNextPage: false, + results: [], + }; + try { + const { data } = await this.client.get(`${this.baseUrl}/genre/${genre}?page=${page}`); + const $ = (0, cheerio_1.load)(data); + const navSelector = 'div.pre-pagination:nth-child(3) > nav:nth-child(1) > ul:nth-child(1)'; + result.hasNextPage = + $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false; + $('.film_list-wrap > div.flw-item') + .each((i, el) => { + var _a, _b, _c, _d, _e, _f; + const resultItem = { + id: (_b = (_a = $(el).find('div.film-poster > a').attr('href')) === null || _a === void 0 ? void 0 : _a.slice(1)) !== null && _b !== void 0 ? _b : '', + title: (_c = $(el).find('div.film-detail > h2.film-name > a').attr('title')) !== null && _c !== void 0 ? _c : '', + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + type: ((_d = $(el).find('div.film-poster > a').attr('href')) === null || _d === void 0 ? void 0 : _d.slice(1).split('/')[0].toLowerCase()) === 'movie' + ? models_1.TvType.MOVIE + : models_1.TvType.TVSERIES, + }; + const season = (_e = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0]) !== null && _e !== void 0 ? _e : null; + const latestEpisode = (_f = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1]) !== null && _f !== void 0 ? _f : null; + if (resultItem.type === models_1.TvType.TVSERIES) { + resultItem.season = season; + resultItem.latestEpisode = latestEpisode; + } + else { + resultItem.rating = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + resultItem.releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + } + result.results.push(resultItem); + }) + .get(); + return result; + } + catch (err) { + throw new Error(err.message); + } + }; + } +} +(async () => { + const movie = new SFlix(); + console.time('recentTv'); + // const search = await movie.fetchEpisodeSources("1167571","tv/free-vincenzo-hd-67955",StreamingServers.Voe); + const movieInfo = await movie.search('vincenzo'); + // const recentTv = await movie.fetchTrendingMovies(); + console.timeEnd('recentTv'); + // const genre = await movie.fetchEpisodeServers("1167571","tv/free-vincenzo-hd-67955"); + console.log(movieInfo); +})(); +exports.default = SFlix; +//# sourceMappingURL=sflix.js.map \ No newline at end of file diff --git a/dist/providers/movies/sflix.js.map b/dist/providers/movies/sflix.js.map new file mode 100644 index 000000000..8f63b2bb4 --- /dev/null +++ b/dist/providers/movies/sflix.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sflix.js","sourceRoot":"","sources":["../../../src/providers/movies/sflix.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,yCASsB;AACtB,iDAA0D;AAE1D,MAAM,KAAM,SAAQ,oBAAW;IAA/B;;QACoB,SAAI,GAAG,OAAO,CAAC;QACd,YAAO,GAAG,kBAAkB,CAAC;QAC7B,SAAI,GACrB,mHAAmH,CAAC;QACnG,cAAS,GAAG,cAAc,CAAC;QACrC,mBAAc,GAAG,IAAI,GAAG,CAAC,CAAC,eAAM,CAAC,KAAK,EAAE,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEnE;;;;WAIG;QACM,WAAM,GAAG,KAAK,EAAE,KAAa,EAAE,OAAe,CAAC,EAAkC,EAAE;YAC1F,MAAM,YAAY,GAA0B;gBAC1C,WAAW,EAAE,IAAI;gBACjB,WAAW,EAAE,KAAK;gBAClB,OAAO,EAAE,EAAE;aACZ,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,IAAI,CAAC,OAAO,WAAW,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,IAAI,EAAE,CACvE,CAAC;gBAEF,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;gBAErB,MAAM,WAAW,GAAG,sEAAsE,CAAC;gBAE3F,YAAY,CAAC,WAAW;oBACtB,CAAC,CAAC,WAAW,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK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O,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,CAAC,KAAK,IAAI,EAAE;IACV,MAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;IAC1B,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzB,8GAA8G;IAC9G,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjD,sDAAsD;IACtD,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC5B,yFAAyF;IACzF,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACzB,CAAC,CAAC,EAAE,CAAC;AAEL,kBAAe,KAAK,CAAC"} \ No newline at end of file diff --git a/docs/providers/sflix.md b/docs/providers/sflix.md new file mode 100644 index 000000000..bafac6284 --- /dev/null +++ b/docs/providers/sflix.md @@ -0,0 +1,425 @@ +

SFlix

+ +```ts +const sflix = new MOVIES.SFlix(); +``` + +

Methods

+ +- [search](#search) +- [fetchMediaInfo](#fetchmediainfo) +- [fetchEpisodeSources](#fetchepisodesources) +- [fetchEpisodeServers](#fetchepisodeservers) +- [fetchRecentMovies](#fetchrecentmovies) +- [fetchRecentTvShows](#fetchrecenttvshows) +- [fetchTrendingMovies](#fetchtrendingmovies) +- [fetchTrendingTvShows](#fetchtrendingtvshows) +- [fetchByCountry](#fetchbycountry) +- [fetchByGenre](#fetchbygenre) + +### search +> Note: This method is a subclass of the [`BaseParser`](https://github.com/consumet/extensions/blob/master/src/models/base-parser.ts) class. meaning it is available across most categories. + + +

Parameters

+ +| Parameter | Type | Description | +| --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| query | `string` | query to search for. (*In this case, We're searching for `Vincenzo`*) | +| page (optional) | `number` | page number (default: 1) | + +```ts +sflix.search("Vincenzo").then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of movies/tv series. (*[`Promise>`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L233-L241)*)\ +output: +```js +{ + currentPage: 1, // current page + hasNextPage: false, // if there is a next page + results: [ + { + id: 'tv/free-vincenzo-hd-67955', // media id + title: 'Vincenzo', + url: 'https://sflix.to/tv/free-vincenzo-hd-67955', + image: 'https://f.woowoowoowoo.net/resize/250x400/79/6b/796b32989cf1308b9e0619524af5b022/796b32989cf1308b9e0619524af5b022.jpg', + releaseDate: '2021', + seasons: undefined, + type: 'TV Series' + }, + {...}, + ... + ] +} +``` + +### fetchMediaInfo + +

Parameters

+ +| Parameter | Type | Description | +| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- | +| mediaId | `string` | takes media id or url as a parameter. (*media id or url can be found in the media search results as shown on the above method*) | + +```ts +sflix.fetchMediaInfo("tv/free-vincenzo-hd-67955").then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an anime info object (including the episodes). (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L243-L254)*)\ +output: +```js +{ + id: 'tv/free-vincenzo-hd-67955', // media id + title: 'Vincenzo', + url: 'https://sflix.to/tv/free-vincenzo-hd-67955', // media url + cover: 'https://f.woowoowoowoo.net/resize/1200x600/54/ed/54ed3e2164e4efa4c9ccc248e03f0032/54ed3e2164e4efa4c9ccc248e03f0032.jpg', + image: 'https://f.woowoowoowoo.net/resize/250x400/79/6b/796b32989cf1308b9e0619524af5b022/796b32989cf1308b9e0619524af5b022.jpg', + description: 'Overview: At age of 8, Park Joo-Hyung went to Italy after he was adopted. He is now an adult and has the name of Vincenzo Cassano. He is lawyer, who works for the Mafia as a consigliere. Because of a war between mafia groups, he flies to South Korea. In Korea, he gets involved with lawyer Hong Cha-Young. She is the type of attorney who will do anything to win a case. Vincenzo Cassano falls in love with her. He also achieves social justice by his own way.', + type: 'TV Series', + releaseDate: '2021-02-20', + genres: [ 'Action', 'Adventure', 'Crime' ], + casts: ['Kwak Dong-yeon','Kim Yeo-jin',... ], + tags: ['Watch Vincenzo Online Free','Vincenzo Online Free',...], + production: 'Studio Dragon, Logos Film', + country: 'South Korea', + duration: '60 min', + rating: 8.4, + recommendations: [ + { + id: 'tv/free-bank-under-siege-hd-116701', + title: 'Bank Under Siege', + image: 'https://f.woowoowoowoo.net/resize/250x400/d4/a1/d4a1645af4305ba1e800c2ddaaa9386e/d4a1645af4305ba1e800c2ddaaa9386e.jpg', + duration: '', + type: 'TV Series' + }, + {...}, + ... + ], + episodes: [ + { + id: '1167571', // episode id + image: 'https://f.woowoowoowoo.net/resize/300x200/23/9b/239bbfb9c4fdac8645f46c5841002ca0/239bbfb9c4fdac8645f46c5841002ca0.jpg', + title: 'Episode 1: Episode 1', + number: 1, + season: 1, + url: 'https://sflix.to/ajax/v2/episode/servers/1167571' + }, + {...}, + ... + ] +} +``` + +### fetchEpisodeSources + +

Parameters

+ +| Parameter | Type | Description | +| ----------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| episodeId | `string` | takes episode id as a parameter. (*episode id can be found in the media info object*) | +| mediaId | `string` | takes media id as a parameter. (*media id can be found in the media info object*) | +| server (optional) | [`StreamingServers`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L144-L157) | takes server enum as a parameter. *default: [`StreamingServers.VidCloud`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L150)* | + + +```ts +sflix.fetchEpisodeSources("1167571","tv/free-vincenzo-hd-67955",StreamingServers.Voe).then(data => { + console.log(data); +}) +``` +returns a promise which resolves into an array of episode sources and subtitles. (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L300-L306)*)\ +output: +```js +{ + headers: { Referer: 'https://voe.sx/e/zm0wvpglgaww' }, + sources: [ + { + url: 'https://delivery-node-8s8wso5f4w7ft6sg.voe-network.net/engine/hls2/01/05794/zm0wvpglgaww_,n,.urlset/master.m3u8?t=XtM-FU04H1OgbJj9hfRQVEw6YqkU7_UGKfnLPpm1eEk&s=1731158664&e=14400&f=28971882&node=delivery-node-8s8wso5f4w7ft6sg.voe-network.net&i=103.123&sp=2500&asn=138296', + quality: 'default', + isM3U8: true + } + ], + subtitles: [ + { + lang: 'thumbnails', + url: 'https://voe.sx/engine/storyboard/zm0wvpglgaww?t=1' + } + ] +} +``` + +### fetchEpisodeServers + +

Parameters

+ +| Parameter | Type | Description | +| --------- | -------- | ------------------------------------------------------------------------------------------------------------- | +| episodeId | `string` | take an episode id or url as a parameter. (*episode id or episode url can be found in the media info object*) | +| mediaId | `string` | takes media id as a parameter. (*media id can be found in the media info object*) | + +```ts +sflix.fetchEpisodeServers("1167571","tv/free-vincenzo-hd-67955").then(data => { + console.log(data); +}) +``` +returns a promise which resolves into an array of episode servers. (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L115-L118)*)\ +output: +```js +[ + { + name: 'upcloud', + url: 'https://sflix.to/watch-tv/free-vincenzo-hd-67955.4829542' + }, + { + name: 'vidcloud', + url: 'https://sflix.to/watch-tv/free-vincenzo-hd-67955.4087001' + }, + { + name: 'voe', + url: 'https://sflix.to/watch-tv/free-vincenzo-hd-67955.7823107' + }, + { + name: 'doodstream', + url: 'https://sflix.to/watch-tv/free-vincenzo-hd-67955.4087002' + }, + { + name: 'mixdrop', + url: 'https://sflix.to/watch-tv/free-vincenzo-hd-67955.6488473' + } +] +``` + +

(back to movie providers list)

+ +### fetchRecentMovies + +```ts +sflix.fetchRecentMovies().then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of movies. (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L328-L336)*)\ +output: +```js +[ + { + id: 'movie/free-pedro-paramo-hd-116617', + title: 'Pedro Páramo', + url: 'https://sflix.to/movie/free-pedro-paramo-hd-116617', + image: 'https://f.woowoowoowoo.net/resize/250x400/5f/7c/5f7c391f9c901097091670d168e7dee3/5f7c391f9c901097091670d168e7dee3.jpg', + releaseDate: '2024', + rating: '6', + type: 'Movie' + }, + { + id: 'movie/free-at-ease-hd-116509', + title: 'At Ease', + url: 'https://sflix.to/movie/free-at-ease-hd-116509', + image: 'https://f.woowoowoowoo.net/resize/250x400/2c/dc/2cdc43157b8033d3b0e019ea66a14631/2cdc43157b8033d3b0e019ea66a14631.jpg', + releaseDate: '2024', + rating: 'N/A', + type: 'Movie' + }, + {...}, +] +``` + + +### fetchRecentTvShows + +```ts +sflix.fetchRecentTvShows().then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of tv shows. (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L328-L336)*)\ +output: +```js +[ + { + id: 'tv/free-volver-a-caer-hd-116710', + title: 'Volver a caer', + url: 'https://sflix.to/tv/free-volver-a-caer-hd-116710', + image: 'https://f.woowoowoowoo.net/resize/250x400/f9/e5/f9e5e9b43f1f424c97f7d7d649e06041/f9e5e9b43f1f424c97f7d7d649e06041.jpg', + season: 'S1', + latestEpisode: 'E6', + type: 'TV Series' + }, + { + id: 'tv/free-smile-code-hd-116707', + title: 'Smile Code', + url: 'https://sflix.to/tv/free-smile-code-hd-116707', + image: 'https://f.woowoowoowoo.net/resize/250x400/f3/44/f34457e98df1a8a4c6b1de8ca655af60/f34457e98df1a8a4c6b1de8ca655af60.jpg', + season: 'S1', + latestEpisode: 'E4', + type: 'TV Series' + }, + {...}, +] +``` + + +### fetchTrendingMovies + +```ts +sflix.fetchTrendingMovies().then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of movies. (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L328-L336)*)\ +output: +```js +[ + { + id: 'movie/free-terrifier-3-hd-115306', + title: 'Terrifier 3', + url: 'https://sflix.to/movie/free-terrifier-3-hd-115306', + image: 'https://f.woowoowoowoo.net/resize/250x400/af/a3/afa3ad03decae892c1309e309be47734/afa3ad03decae892c1309e309be47734.jpg', + releaseDate: '2024', + rating: 'N/A', + type: 'Movie' + }, + { + id: 'movie/free-venom-the-last-dance-hd-115885', + title: 'Venom: The Last Dance', + url: 'https://sflix.to/movie/free-venom-the-last-dance-hd-115885', + image: 'https://f.woowoowoowoo.net/resize/250x400/38/d5/38d557d9a4f2622eb1a7f0f412a65cc5/38d557d9a4f2622eb1a7f0f412a65cc5.jpg', + releaseDate: '2024', + rating: 'N/A', + type: 'Movie' + }, + {...}, +] +``` + + +### fetchTrendingTvShows + +```ts +sflix.fetchTrendingTvShows().then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of tv shows. (*[`Promise`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L328-L336)*)\ +output: +```js +[ +{ + id: 'tv/free-the-street-hd-30049', + title: 'The Street', + url: 'https://sflix.to/tv/free-the-street-hd-30049', + image: 'https://f.woowoowoowoo.net/resize/250x400/7f/39/7f3969a8e454c148ec67070e33fa0ce6/7f3969a8e454c148ec67070e33fa0ce6.jpg', + season: 'S', + latestEpisode: 'E', + type: 'TV Series' + }, + { + id: 'tv/free-return-to-las-sabinas-hd-115321', + title: 'Return to Las Sabinas', + url: 'https://sflix.to/tv/free-return-to-las-sabinas-hd-115321', + image: 'https://f.woowoowoowoo.net/resize/250x400/55/59/5559c88dc771ce5f29730fa8e318550d/5559c88dc771ce5f29730fa8e318550d.jpg', + season: 'S1', + latestEpisode: 'E25', + type: 'TV Series' + }, + {...}, +] +``` + +### fetchByCountry + +

Parameters

+ +| Parameter | Type | Description | +| --------------- | -------- | ----------------------------------------------------------------------- | +| country | `string` | param to filter by country. (*In this case, We're filtering by `KR`*) | +| page (optional) | `number` | page number (default: 1) | + +```ts +sflix.fetchByCountry('KR').then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of movies/tv series. (*[`Promise>`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L233-L241)*)\ +output: +```js +{ + currentPage: 1, + hasNextPage: true, + results: [ + { + id: 'tv/free-mr-plankton-hd-116692', + title: 'Mr. Plankton', + url: 'https://sflix.to/tv/free-mr-plankton-hd-116692', + image: 'https://f.woowoowoowoo.net/resize/250x400/fa/c4/fac4a2e8d7d65827bdb9a03ef9883353/fac4a2e8d7d65827bdb9a03ef9883353.jpg', + type: 'TV Series', + season: 'S1', + latestEpisode: 'E10' + }, + { + id: 'tv/free-gangnam-b-side-hd-116608', + title: 'Gangnam B-Side', + url: 'https://sflix.to/tv/free-gangnam-b-side-hd-116608', + image: 'https://f.woowoowoowoo.net/resize/250x400/4a/f2/4af2bc64b7f4615ff07ee6517ecd8d04/4af2bc64b7f4615ff07ee6517ecd8d04.jpg', + type: 'TV Series', + season: 'S1', + latestEpisode: 'E2' + }, + {...} + ] +} +``` + +### fetchByGenre + +

Parameters

+ +| Parameter | Type | Description | +| --------------- | -------- | ---------------------------------------------------------------------- | +| genre | `string` | param to filter by genre. (*In this case, We're filtering by `drama`*) | +| page (optional) | `number` | page number (default: 1) | + +```ts +sflix.fetchByGenre('drama').then(data => { + console.log(data); +}) +``` + +returns a promise which resolves into an array of movies/tv series. (*[`Promise>`](https://github.com/consumet/extensions/blob/master/src/models/types.ts#L233-L241)*)\ +output: +```js +{ + currentPage: 1, + hasNextPage: true, + results: [ + { + id: 'movie/free-caught-by-the-tides-hd-115933', + title: 'Caught by the Tides', + url: 'https://sflix.to/movie/free-caught-by-the-tides-hd-115933', + image: 'https://f.woowoowoowoo.net/resize/250x400/ed/7e/ed7e90c1be61d7cbe614e51b1f95ba0b/ed7e90c1be61d7cbe614e51b1f95ba0b.jpg', + type: 'Movie', + rating: '6.4', + releaseDate: '2024' + }, + { + id: 'movie/free-christmas-at-xander-point-hd-116575', + title: 'Christmas at Xander Point', + url: 'https://sflix.to/movie/free-christmas-at-xander-point-hd-116575', + image: 'https://f.woowoowoowoo.net/resize/250x400/39/76/3976bfbff8d95c8675a3ad17c0cbefbf/3976bfbff8d95c8675a3ad17c0cbefbf.jpg', + type: 'Movie', + rating: '7.4', + releaseDate: '2024' + }, + {...} + ] +} +``` diff --git a/src/extractors/gogocdn.ts b/src/extractors/gogocdn.ts index 8203d3a10..ae5493daf 100644 --- a/src/extractors/gogocdn.ts +++ b/src/extractors/gogocdn.ts @@ -1,7 +1,7 @@ import { CheerioAPI, load } from 'cheerio'; import CryptoJS from 'crypto-js'; -import { VideoExtractor, IVideo, ProxyConfig } from '../models'; +import { VideoExtractor, IVideo, ProxyConfig, ISubtitle } from '../models'; import { USER_AGENT } from '../utils'; class GogoCDN extends VideoExtractor { @@ -16,7 +16,7 @@ class GogoCDN extends VideoExtractor { private referer: string = ''; - override extract = async (videoUrl: URL): Promise => { + override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => { this.referer = videoUrl.href; const res = await this.client.get(videoUrl.href); @@ -32,10 +32,15 @@ class GogoCDN extends VideoExtractor { }, } ); - const decryptedData = await this.decryptAjaxData(encryptedData.data.data); + // console.log(decryptedData.track.tracks); if (!decryptedData.source) throw new Error('No source found. Try a different server.'); + const subtitles: ISubtitle[] = decryptedData.track.tracks.map((track: any) => ({ + url: track.file, + lang: track.kind, + })); + if (decryptedData.source[0].file.includes('.m3u8')) { const resResult = await this.client.get(decryptedData.source[0].file.toString()); const resolutions = resResult.data.match(/(RESOLUTION=)(.*)(\s*?)(\s*.*)/g); @@ -74,7 +79,10 @@ class GogoCDN extends VideoExtractor { }); }); - return this.sources; + return { + sources: this.sources, + subtitles: subtitles, + }; }; private addSources = async (source: any) => { diff --git a/src/extractors/streamwish.ts b/src/extractors/streamwish.ts index f582a1bfe..271a85cdb 100644 --- a/src/extractors/streamwish.ts +++ b/src/extractors/streamwish.ts @@ -1,11 +1,11 @@ -import { VideoExtractor, IVideo } from '../models'; +import { VideoExtractor, IVideo, ISubtitle } from '../models'; import { USER_AGENT } from '../utils'; import zlib from 'zlib'; class StreamWish extends VideoExtractor { protected override serverName = 'streamwish'; protected override sources: IVideo[] = []; - override extract = async (videoUrl: URL): Promise => { + override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => { try { const options = { headers: { @@ -28,7 +28,6 @@ class StreamWish extends VideoExtractor { 'User-Agent': USER_AGENT, }, }; - // console.log(videoUrl.href,"videoUrl") const { data } = await this.client.get(videoUrl.href, options); // Code adapted from Zenda-Cross (https://github.com/Zenda-Cross/vega-app/blob/main/src/lib/providers/multi/multiGetStream.ts) @@ -58,6 +57,24 @@ class StreamWish extends VideoExtractor { console.log('No match found'); } const links = p.match(/file:\s*"([^"]+\.m3u8[^"]*)"/) ?? []; + const subtitleMatches = + p?.match(/{file:"([^"]+)",(label:"([^"]+)",)?kind:"(thumbnails|captions)"/g) ?? []; + // console.log(subtitleMatches, 'subtitleMatches'); + const subtitles: ISubtitle[] = subtitleMatches.map(sub => { + const lang = sub?.match(/label:"([^"]+)"/)?.[1] ?? ''; + const url = sub?.match(/file:"([^"]+)"/)?.[1] ?? ''; + const kind = sub?.match(/kind:"([^"]+)"/)?.[1] ?? ''; + if (kind.includes('thumbnail')) { + return { + lang: kind, + url: `https://streamwish.com${url}`, + }; + } + return { + lang: lang, + url: url, + }; + }); let lastLink: string | null = null; links.forEach((link: string) => { if (link.includes('file:"')) { @@ -93,7 +110,10 @@ class StreamWish extends VideoExtractor { } } catch (e) {} - return this.sources; + return { + sources: this.sources, + subtitles: subtitles, + }; } catch (err) { throw new Error((err as Error).message); } diff --git a/src/extractors/voe.ts b/src/extractors/voe.ts index 9eda890db..a3488bcc5 100644 --- a/src/extractors/voe.ts +++ b/src/extractors/voe.ts @@ -1,6 +1,6 @@ import { load } from 'cheerio'; -import { IVideo, VideoExtractor } from '../models'; +import { IVideo, VideoExtractor, ISubtitle } from '../models'; class Voe extends VideoExtractor { protected override serverName = 'voe'; @@ -8,13 +8,37 @@ class Voe extends VideoExtractor { private readonly domains = ['voe.sx']; - override extract = async (videoUrl: URL): Promise => { + override extract = async (videoUrl: URL): Promise<{ sources: IVideo[] } & { subtitles: ISubtitle[] }> => { try { const res = await this.client.get(videoUrl.href); const $ = load(res.data); - - const url = $('body').html()!.split('prompt("Node", "')[1].split('");')[0]; - // const quality = $('body').html()!.match(/'video_height': ?([0-9]+),/)![1]; + const scriptContent = $('script').html(); + const pageUrl = scriptContent + ? scriptContent.match(/window\.location\.href\s*=\s*'(https:\/\/[^']+)';/)?.[1] ?? '' + : ''; + + const { data } = await this.client.get(pageUrl); + const $$ = load(data); + const url = $$('body').html()!.split('prompt("Node", "')[1].split('");')[0]; + + let thumbnailSrc: string = ''; + $$('script').each((i, el) => { + const scriptContent = $(el).html(); + const regex = /previewThumbnails:\s*{[^}]*src:\s*\["([^"]+)"\]/; + if (scriptContent) { + const match = scriptContent.match(regex); + if (match && match[1]) { + thumbnailSrc = match[1]; + return false; + } + } + }); + const subtitles: ISubtitle[] = [ + { + lang: 'thumbnails', + url: `${videoUrl.origin}${thumbnailSrc}`, + }, + ]; this.sources.push({ url: url, @@ -22,8 +46,12 @@ class Voe extends VideoExtractor { isM3U8: url.includes('.m3u8'), }); - return this.sources; + return { + sources: this.sources, + subtitles: subtitles, + }; } catch (err) { + console.log(err); throw new Error((err as Error).message); } }; diff --git a/src/providers/anime/animefox.ts b/src/providers/anime/animefox.ts index b212897c4..3fca58027 100644 --- a/src/providers/anime/animefox.ts +++ b/src/providers/anime/animefox.ts @@ -186,7 +186,7 @@ class AnimeFox extends AnimeParser { const iframe = $('#iframe-to-load').attr('src') || ''; const streamUrl = `https://goload.io/streaming.php?id=${iframe.split('=')[1]}`; return { - sources: await new GogoCDN(this.proxyConfig).extract(new URL(streamUrl)), + ...(await new GogoCDN(this.proxyConfig).extract(new URL(streamUrl))), }; } catch (err) { console.log(err); diff --git a/src/providers/anime/gogoanime.ts b/src/providers/anime/gogoanime.ts index 3789175ba..558e2163d 100644 --- a/src/providers/anime/gogoanime.ts +++ b/src/providers/anime/gogoanime.ts @@ -194,7 +194,7 @@ class Gogoanime extends AnimeParser { case StreamingServers.GogoCDN: return { headers: { Referer: serverUrl.origin }, - sources: await new GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl)), download: downloadUrl ? downloadUrl : `https://${serverUrl.host}/download${serverUrl.search}`, }; case StreamingServers.StreamSB: @@ -220,13 +220,13 @@ class Gogoanime extends AnimeParser { headers: { Referer: serverUrl.origin, }, - sources: await new StreamWish(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)), download: downloadUrl ? downloadUrl : `https://${serverUrl.host}/download${serverUrl.search}`, }; default: return { headers: { Referer: serverUrl.origin }, - sources: await new GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new GogoCDN(this.proxyConfig, this.adapter).extract(serverUrl)), download: downloadUrl ? downloadUrl : `https://${serverUrl.host}/download${serverUrl.search}`, }; } diff --git a/src/providers/anime/monoschinos.ts b/src/providers/anime/monoschinos.ts index 27ca85911..695ca4bb8 100644 --- a/src/providers/anime/monoschinos.ts +++ b/src/providers/anime/monoschinos.ts @@ -8,6 +8,7 @@ import { IEpisodeServer, ISearch, ISource, + ISubtitle, IVideo, StreamingServers, } from '../../models'; @@ -104,6 +105,7 @@ class MonosChinos extends AnimeParser { let decodedUrl; let sources: IVideo[]; + let subtitles: ISubtitle[] = []; // filemoon => js code too obfuscated // mixdrop => 403 forbidden @@ -112,7 +114,11 @@ class MonosChinos extends AnimeParser { try { decodedUrl = await this.#getServerDecodedUrl($, StreamingServers.Voe); - sources = await new Voe().extract(new URL(decodedUrl.replace('voe.sx', 'thomasalthoughhear.com'))); + const voeResult = await new Voe().extract( + new URL(decodedUrl.replace('voe.sx', 'thomasalthoughhear.com')) + ); + sources = voeResult.sources; + subtitles = voeResult?.subtitles; } catch (err) { decodedUrl = await this.#getServerDecodedUrl($, StreamingServers.StreamTape); sources = await new StreamTape().extract(new URL(decodedUrl)); @@ -122,7 +128,7 @@ class MonosChinos extends AnimeParser { } } - return { sources: sources }; + return { sources: sources, subtitles: subtitles }; } catch (err) { throw new Error((err as Error).message); } diff --git a/src/providers/movies/dramacool.ts b/src/providers/movies/dramacool.ts index cc02733cb..04c861b02 100644 --- a/src/providers/movies/dramacool.ts +++ b/src/providers/movies/dramacool.ts @@ -1,6 +1,6 @@ import { load } from 'cheerio'; -import { AsianLoad, MixDrop, StreamSB, StreamTape } from '../../extractors'; +import { AsianLoad, MixDrop, StreamSB, StreamTape, StreamWish } from '../../extractors'; import { IEpisodeServer, IMovieInfo, @@ -15,7 +15,7 @@ import { class DramaCool extends MovieParser { override readonly name = 'DramaCool'; - protected override baseUrl = 'https://dramacool.com.pa'; + protected override baseUrl = 'https://asianc.co'; protected override logo = 'https://play-lh.googleusercontent.com/IaCb2JXII0OV611MQ-wSA8v_SAs9XF6E3TMDiuxGGXo4wp9bI60GtDASIqdERSTO5XU'; protected override classPath = 'MOVIES.DramaCool'; @@ -224,6 +224,10 @@ class DramaCool extends MovieParser { return { sources: await new StreamSB(this.proxyConfig, this.adapter).extract(serverUrl), }; + case StreamingServers.StreamWish: + return { + ...(await new StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)), + }; default: throw new Error('Server not supported'); } diff --git a/src/providers/movies/index.ts b/src/providers/movies/index.ts index 52f480f0e..dfad7ff50 100644 --- a/src/providers/movies/index.ts +++ b/src/providers/movies/index.ts @@ -7,6 +7,7 @@ import MovieHdWatch from './movidhdwatch'; import SmashyStream from './smashystream'; import Turkish from './turkish123'; import ViewAsian from './viewAsian'; +import SFlix from './sflix'; export default { DramaCool, @@ -18,4 +19,5 @@ export default { SmashyStream, ViewAsian, Turkish, + SFlix, }; diff --git a/src/providers/movies/kissasian.ts b/src/providers/movies/kissasian.ts index dc0412e08..2230d5c2f 100644 --- a/src/providers/movies/kissasian.ts +++ b/src/providers/movies/kissasian.ts @@ -207,7 +207,7 @@ class KissAsian extends MovieParser { }; case StreamingServers.StreamWish: return { - sources: await new StreamWish(this.proxyConfig, this.adapter).extract(serverUrl), + ...(await new StreamWish(this.proxyConfig, this.adapter).extract(serverUrl)), }; case StreamingServers.Mp4Upload: return { diff --git a/src/providers/movies/sflix.ts b/src/providers/movies/sflix.ts new file mode 100644 index 000000000..69a44820e --- /dev/null +++ b/src/providers/movies/sflix.ts @@ -0,0 +1,517 @@ +import { load } from 'cheerio'; + +import { + MovieParser, + TvType, + IMovieInfo, + IEpisodeServer, + StreamingServers, + ISource, + IMovieResult, + ISearch, +} from '../../models'; +import { MixDrop, VidCloud, Voe } from '../../extractors'; + +class SFlix extends MovieParser { + override readonly name = 'SFlix'; + protected override baseUrl = 'https://sflix.to'; + protected override logo = + 'https://img.sflix.to/xxrz/100x100/100/a2/33/a233d4c4a1426ca77ec1d34deec62f71/a233d4c4a1426ca77ec1d34deec62f71.png'; + protected override classPath = 'MOVIES.SFlix'; + override supportedTypes = new Set([TvType.MOVIE, TvType.TVSERIES]); + + /** + * + * @param query search query string + * @param page page number (default 1) (optional) + */ + override search = async (query: string, page: number = 1): Promise> => { + const searchResult: ISearch = { + currentPage: page, + hasNextPage: false, + results: [], + }; + try { + const { data } = await this.client.get( + `${this.baseUrl}/search/${query.replace(/[\W_]+/g, '-')}?page=${page}` + ); + + const $ = load(data); + + const navSelector = 'div.pre-pagination:nth-child(3) > nav:nth-child(1) > ul:nth-child(1)'; + + searchResult.hasNextPage = + $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false; + + $('.film_list-wrap > div.flw-item').each((i, el) => { + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + searchResult.results.push({ + id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!, + title: $(el).find('div.film-detail > h2 > a').attr('title')!, + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate, + seasons: releaseDate.includes('SS') ? parseInt(releaseDate.split('SS')[1]) : undefined, + type: + $(el).find('div.film-detail > div.fd-infor > span:nth-child(2)').text() === 'Movie' + ? TvType.MOVIE + : TvType.TVSERIES, + }); + }); + + return searchResult; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + /** + * + * @param mediaId media link or id + */ + override fetchMediaInfo = async (mediaId: string): Promise => { + if (!mediaId.startsWith(this.baseUrl)) { + mediaId = `${this.baseUrl}/${mediaId}`; + } + + const movieInfo: IMovieInfo = { + id: mediaId.split('to/').pop()!, + title: '', + url: mediaId, + }; + try { + const { data } = await this.client.get(mediaId); + const $ = load(data); + const recommendationsArray: IMovieResult[] = []; + + $( + 'div.container > section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item' + ).each((i, el) => { + recommendationsArray.push({ + id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!, + title: $(el).find('div.film-detail > h3.film-name > a').text(), + image: $(el).find('div.film-poster > img').attr('data-src'), + duration: + $(el).find('div.film-detail > div.fd-infor > span.fdi-duration').text().replace('m', '') ?? null, + type: + $(el).find('div.film-detail > div.fd-infor > span.fdi-item').eq(1).text().trim().toLowerCase() === + 'tv' + ? TvType.TVSERIES + : TvType.MOVIE ?? null, + }); + }); + + const uid = $('.detail_page-watch').attr('data-id')!; + movieInfo.cover = $('.cover_follow').attr('style')?.slice(22).replace(')', '').replace(';', ''); + movieInfo.title = $('.heading-name > a:nth-child(1)').text(); + movieInfo.image = $('.dp-i-c-poster > div:nth-child(1) > img:nth-child(1)').attr('src'); + movieInfo.description = $('.description') + .text() + .replace(/^Overview:\s*/i, '') + .replace(/\s+/g, ' ') + .trim(); + movieInfo.type = movieInfo.id.split('/')[0] === 'tv' ? TvType.TVSERIES : TvType.MOVIE; + movieInfo.releaseDate = $('div.row > div.col-xl-5 .row-line') + .eq(0) + .text() + .replace('Released: ', '') + .trim(); + movieInfo.genres = $('div.row >div.col-xl-5 .row-line') + .eq(1) + .find('a') + .map((i, el) => $(el).text().split('&')) + .get() + .map(v => v.trim()); + movieInfo.casts = $('div.row > div.col-xl-5 .row-line') + .eq(2) + .find('a') + .map((i, el) => $(el).text()) + .get(); + movieInfo.tags = $('div.row-tags > h2') + .map((i, el) => $(el).text().replace(/\s+/g, ' ').trim()) + .get(); + movieInfo.production = $('div.row > div.col-xl-6 .row-line') + .eq(2) + .find('a') + .map((i, el) => $(el).text().trim()) + .get() + .join(', '); + movieInfo.country = $('div.row > div.col-xl-6 .row-line').eq(1).find('a').text().trim(); + movieInfo.duration = $('div.row > div.col-xl-6 .row-line') + .eq(0) + .text() + .replace('Duration: ', '') + .replace(/\s+/g, ' ') + .trim(); + movieInfo.rating = parseFloat( + $('div.film-stats > div.fs-item > span.imdb').text().replace('IMDB: ', '') + ); + movieInfo.recommendations = recommendationsArray as any; + const ajaxReqUrl = (id: string, type: string, isSeasons: boolean = false) => + `${this.baseUrl}/ajax/${type === 'movie' ? type : `v2/${type}`}/${ + isSeasons ? 'seasons' : 'episodes' + }/${id}`; + + if (movieInfo.type === TvType.TVSERIES) { + const { data } = await this.client.get(ajaxReqUrl(uid, 'tv', true)); + const $$ = load(data); + const seasonsIds = $$('.dropdown-menu > a') + .map((i, el) => $(el).attr('data-id')) + .get(); + + movieInfo.episodes = []; + let season = 1; + for (const id of seasonsIds) { + const { data } = await this.client.get(ajaxReqUrl(id, 'season')); + const $$$ = load(data); + + $$$('.swiper-container > .swiper-wrapper > .swiper-slide') + .map((i, el) => { + const episode = { + id: $$$(el).find('div.flw-item').attr('id')!.split('-')[1], + image: $$$(el).find('div.flw-item > a > img').attr('src')!, + title: $$$(el).find('div.flw-item > a > img').attr('title')!, + number: parseInt( + $$$(el).find('div.flw-item > a > img').attr('title')!.split(':')[0].slice(8).trim() + ), + season: season, + url: `${this.baseUrl}/ajax/v2/episode/servers/${ + $$$(el).find('div.flw-item').attr('id')!.split('-')[1] + }`, + }; + movieInfo.episodes?.push(episode); + }) + .get(); + season++; + } + } else { + movieInfo.episodes = [ + { + id: uid, + title: movieInfo.title, + url: `${this.baseUrl}/ajax/movie/episodes/${uid}`, + }, + ]; + } + + return movieInfo; + } catch (err) { + console.log(err, 'err'); + throw new Error((err as Error).message); + } + }; + + /** + * + * @param episodeId episode id + * @param mediaId media id + * @param server server type (default `VidCloud`) (optional) + */ + override fetchEpisodeSources = async ( + episodeId: string, + mediaId: string, + server: StreamingServers = StreamingServers.UpCloud + ): Promise => { + if (episodeId.startsWith('http')) { + const serverUrl = new URL(episodeId); + switch (server) { + case StreamingServers.Voe: + return { + headers: { Referer: serverUrl.href }, + ...(await new Voe(this.proxyConfig, this.adapter).extract(serverUrl)), + }; + case StreamingServers.VidCloud: + return { + headers: { Referer: serverUrl.href }, + ...(await new VidCloud(this.proxyConfig, this.adapter).extract(serverUrl, true)), + }; + case StreamingServers.UpCloud: + return { + headers: { Referer: serverUrl.href }, + ...(await new VidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), + }; + default: + return { + headers: { Referer: serverUrl.href }, + sources: await new MixDrop(this.proxyConfig, this.adapter).extract(serverUrl), + }; + } + } + + try { + const servers = await this.fetchEpisodeServers(episodeId, mediaId); + + const i = servers.findIndex(s => s.name === server); + + if (i === -1) { + throw new Error(`Server ${server} not found`); + } + + const { data } = await this.client.get( + `${this.baseUrl}/ajax/get_link/${servers[i].url.split('.').slice(-1).shift()}` + ); + + const serverUrl: URL = new URL(data.link); + + return await this.fetchEpisodeSources(serverUrl.href, mediaId, server); + } catch (err) { + console.log(err, 'err'); + throw new Error((err as Error).message); + } + }; + + /** + * + * @param episodeId takes episode link or movie id + * @param mediaId takes movie link or id (found on movie info object) + */ + override fetchEpisodeServers = async (episodeId: string, mediaId: string): Promise => { + if (!episodeId.startsWith(this.baseUrl + '/ajax') && !mediaId.includes('movie')) + episodeId = `${this.baseUrl}/ajax/v2/episode/servers/${episodeId}`; + else episodeId = `${this.baseUrl}/ajax/movie/episodes/${episodeId}`; + + try { + const { data } = await this.client.get(episodeId); + const $ = load(data); + + const servers = $('.ulclear > li') + .map((i, el) => { + const server = { + name: mediaId.includes('movie') + ? $(el).find('a').find('span').text().trim().toLowerCase() + : $(el).find('a').find('span').text().trim().toLowerCase(), + url: `${this.baseUrl}/${mediaId}.${ + !mediaId.includes('movie') ? $(el).find('a').attr('data-id') : $(el).find('a').attr('data-id') + }`.replace( + !mediaId.includes('movie') ? /\/tv\// : /\/movie\//, + !mediaId.includes('movie') ? '/watch-tv/' : '/watch-movie/' + ), + }; + return server; + }) + .get(); + return servers; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + fetchRecentMovies = async (): Promise => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = load(data); + + const movies = $( + 'section.block_area:contains("Latest Movies") > div:nth-child(2) > div:nth-child(1) > div.flw-item' + ) + .map((i, el) => { + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + const movie: any = { + id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!, + title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!, + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate, + rating: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text() || null, + type: TvType.MOVIE, + }; + return movie; + }) + .get(); + return movies; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + fetchRecentTvShows = async (): Promise => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = load(data); + + const tvshows = $( + 'section.block_area:contains("Latest TV Shows") > div:nth-child(2) > div:nth-child(1) > div.flw-item' + ) + .map((i, el) => { + const tvshow = { + id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!, + title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!, + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + season: + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0] || null, + latestEpisode: + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1] || null, + type: TvType.TVSERIES, + }; + return tvshow; + }) + .get(); + return tvshows; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + fetchTrendingMovies = async (): Promise => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = load(data); + + const movies = $('div#trending-movies div.film_list-wrap div.flw-item') + .map((i, el) => { + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + const movie: any = { + id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!, + title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!, + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + releaseDate: isNaN(parseInt(releaseDate)) ? undefined : releaseDate, + rating: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text() || null, + type: TvType.MOVIE, + }; + return movie; + }) + .get(); + return movies; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + fetchTrendingTvShows = async (): Promise => { + try { + const { data } = await this.client.get(`${this.baseUrl}/home`); + const $ = load(data); + + const tvshows = $('div#trending-tv div.film_list-wrap div.flw-item') + .map((i, el) => { + const tvshow = { + id: $(el).find('div.film-poster > a').attr('href')?.slice(1)!, + title: $(el).find('div.film-detail > h3.film-name > a').attr('title')!, + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + season: + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0] || null, + latestEpisode: + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1] || null, + type: TvType.TVSERIES, + }; + return tvshow; + }) + .get(); + return tvshows; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + fetchByCountry = async (country: string, page: number = 1): Promise> => { + const result: ISearch = { + currentPage: page, + hasNextPage: false, + results: [], + }; + const navSelector = 'div.pre-pagination:nth-child(3) > nav:nth-child(1) > ul:nth-child(1)'; + + try { + const { data } = await this.client.get(`${this.baseUrl}/country/${country}/?page=${page}`); + const $ = load(data); + + result.hasNextPage = + $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false; + + $('div.container > section.block_area > div.block_area-content > div.film_list-wrap > div.flw-item') + .each((i, el) => { + const resultItem: IMovieResult = { + id: $(el).find('div.film-poster > a').attr('href')?.slice(1) ?? '', + title: $(el).find('div.film-detail > h2.film-name > a').attr('title') ?? '', + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + type: + $(el).find('div.film-poster > a').attr('href')?.slice(1).split('/')[0].toLowerCase() === 'movie' + ? TvType.MOVIE + : TvType.TVSERIES, + }; + const season = + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0] ?? null; + const latestEpisode = + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1] ?? null; + if (resultItem.type === TvType.TVSERIES) { + resultItem.season = season; + resultItem.latestEpisode = latestEpisode; + } else { + resultItem.rating = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + resultItem.releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + } + result.results.push(resultItem); + }) + .get(); + return result; + } catch (err) { + throw new Error((err as Error).message); + } + }; + + fetchByGenre = async (genre: string, page: number = 1): Promise> => { + const result: ISearch = { + currentPage: page, + hasNextPage: false, + results: [], + }; + try { + const { data } = await this.client.get(`${this.baseUrl}/genre/${genre}?page=${page}`); + + const $ = load(data); + + const navSelector = 'div.pre-pagination:nth-child(3) > nav:nth-child(1) > ul:nth-child(1)'; + + result.hasNextPage = + $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('active') : false; + + $('.film_list-wrap > div.flw-item') + .each((i, el) => { + const resultItem: IMovieResult = { + id: $(el).find('div.film-poster > a').attr('href')?.slice(1) ?? '', + title: $(el).find('div.film-detail > h2.film-name > a').attr('title') ?? '', + url: `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`, + image: $(el).find('div.film-poster > img').attr('data-src'), + type: + $(el).find('div.film-poster > a').attr('href')?.slice(1).split('/')[0].toLowerCase() === 'movie' + ? TvType.MOVIE + : TvType.TVSERIES, + }; + const season = + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[0] ?? null; + const latestEpisode = + $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text().split(':')[1] ?? null; + if (resultItem.type === TvType.TVSERIES) { + resultItem.season = season; + resultItem.latestEpisode = latestEpisode; + } else { + resultItem.rating = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + resultItem.releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text(); + } + result.results.push(resultItem); + }) + .get(); + + return result; + } catch (err) { + throw new Error((err as Error).message); + } + }; +} + +(async () => { + const movie = new SFlix(); + console.time('recentTv'); + // const search = await movie.fetchEpisodeSources("1167571","tv/free-vincenzo-hd-67955",StreamingServers.Voe); + const movieInfo = await movie.search('vincenzo'); + // const recentTv = await movie.fetchTrendingMovies(); + console.timeEnd('recentTv'); + // const genre = await movie.fetchEpisodeServers("1167571","tv/free-vincenzo-hd-67955"); + console.log(movieInfo); +})(); + +export default SFlix; diff --git a/test/anime/animefox.test.ts b/test/anime/animefox.test.ts index 1120b8f14..95f2e2bb5 100644 --- a/test/anime/animefox.test.ts +++ b/test/anime/animefox.test.ts @@ -26,4 +26,5 @@ test('returns a filled array of recent animes', async () => { test('returns a filled object of episode sources', async () => { const data = await animefox.fetchEpisodeSources('overlord-iv-episode-1'); expect(data.sources).not.toEqual([]); + expect(data.subtitles).not.toEqual([]); }); diff --git a/test/anime/gogoanime.test.ts b/test/anime/gogoanime.test.ts index a151ba0a7..a275ae4ab 100644 --- a/test/anime/gogoanime.test.ts +++ b/test/anime/gogoanime.test.ts @@ -29,6 +29,7 @@ test('returns a filled array of servers', async () => { test('returns a filled object of episode sources', async () => { const data = await gogoanime.fetchEpisodeSources('spy-x-family-episode-9', StreamingServers.StreamWish); expect(data.sources).not.toEqual([]); + expect(data.subtitles).not.toEqual([]); }); test('returns a filled array of available genres', async () => { diff --git a/test/anime/monoschinos.test.ts b/test/anime/monoschinos.test.ts index be4e90b1b..a78feab2d 100644 --- a/test/anime/monoschinos.test.ts +++ b/test/anime/monoschinos.test.ts @@ -23,4 +23,5 @@ test('returns a filled object of episode sources', async () => { const data = await monoschinos.fetchEpisodeSources(info.episodes![0].id); console.log(data); expect(data.sources).not.toEqual([]); + expect(data.subtitles).not.toEqual([]); }); diff --git a/test/movies/sflix.test.ts b/test/movies/sflix.test.ts new file mode 100644 index 000000000..601a992db --- /dev/null +++ b/test/movies/sflix.test.ts @@ -0,0 +1,37 @@ +import { StreamingServers } from '../../src/models'; +import { MOVIES } from '../../src/providers'; + +jest.setTimeout(120000); + +const sflix = new MOVIES.SFlix(); + +test('returns a filled array of movies/tv', async () => { + const data = await sflix.search('vincenzo'); + expect(data.results).not.toEqual([]); +}); + +test('returns a filled object of movies/tv data', async () => { + const data = await sflix.fetchMediaInfo('tv/free-vincenzo-hd-67955'); + expect(data.description).not.toEqual(''); + expect(data.episodes).not.toEqual([]); +}); + +test('returns a filled object of streaming sources', async () => { + const episodeSources = await sflix.fetchEpisodeSources( + '1167571', + 'tv/free-vincenzo-hd-67955', + StreamingServers.Voe + ); + expect(episodeSources.sources).not.toEqual([]); + expect(episodeSources.subtitles).not.toEqual([]); +}); + +test('returns a filled object of movies/tv data by country', async () => { + const data = await sflix.fetchByCountry('KR'); + expect(data.results).not.toEqual([]); +}); + +test('returns a filled object of movies/tv data by genre', async () => { + const data = await sflix.fetchByGenre('drama'); + expect(data.results).not.toEqual([]); +});