From 2d1522be758c0a2d300767a5d993174233b7f0ed Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Tue, 27 Feb 2024 17:56:56 -0500 Subject: [PATCH 01/15] Feat(dramacool): add (genres, duration, status) to fetchMediaInfo --- dist/extractors/vidcloud.js | 3 +- dist/extractors/vidcloud.js.map | 2 +- dist/providers/movies/dramacool.js | 24 ++++++++- dist/providers/movies/dramacool.js.map | 2 +- dist/providers/movies/flixhq.d.ts | 2 + dist/providers/movies/flixhq.js | 72 +++++++++++++++++++++++++- dist/providers/movies/flixhq.js.map | 2 +- src/providers/movies/dramacool.ts | 28 +++++++++- 8 files changed, 125 insertions(+), 10 deletions(-) diff --git a/dist/extractors/vidcloud.js b/dist/extractors/vidcloud.js index 80a201e3c..036d411b0 100644 --- a/dist/extractors/vidcloud.js +++ b/dist/extractors/vidcloud.js @@ -33,9 +33,8 @@ class VidCloud extends models_1.VideoExtractor { res = await this.client.get(`${isAlternative ? this.host2 : this.host}/ajax/embed-4/getSources?id=${id}`, options); if (!(0, utils_1.isJson)(res.data.sources)) { const keys = await (await this.client.get('https://raw.githubusercontent.com/eatmynerds/key/e4/key.txt')).data; - const keyString = btoa(String.fromCharCode.apply(null, Array.from(new Uint8Array(JSON.parse(keys))))); + const keyString = btoa(String.fromCharCode.apply(null, Array.from(new Uint8Array(JSON.parse(JSON.stringify(keys)))))); const decryptedVal = crypto_js_1.default.AES.decrypt(res.data.sources, keyString).toString(crypto_js_1.default.enc.Utf8); - sources = JSON.parse(crypto_js_1.default.AES.decrypt(res.data.sources, keyString).toString(crypto_js_1.default.enc.Utf8)); sources = (0, utils_1.isJson)(decryptedVal) ? JSON.parse(decryptedVal) : res.data.sources; } this.sources = sources.map((s) => ({ diff --git a/dist/extractors/vidcloud.js.map b/dist/extractors/vidcloud.js.map index 2a7693f8d..538b43ea1 100644 --- a/dist/extractors/vidcloud.js.map +++ b/dist/extractors/vidcloud.js.map @@ -1 +1 @@ -{"version":3,"file":"vidcloud.js","sourceRo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C,CAAC;oBACL,CAAC;oBACD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvC,CAAC;gBAED,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;oBAClB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;oBACpB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;oBACzC,OAAO,EAAE,MAAM;iBAChB,CAAC,CAAC;gBAEH,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC;oBAClD,GAAG,EAAE,CAAC,CAAC,IAAI;oBACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB;iBAC5C,CAAC,CAAC,CAAC;gBAEJ,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/providers/movies/dramacool.js b/dist/providers/movies/dramacool.js index 4f02a7086..32ed022db 100644 --- a/dist/providers/movies/dramacool.js +++ b/dist/providers/movies/dramacool.js @@ -50,12 +50,34 @@ class DramaCool extends models_1.MovieParser { const { data } = await this.client.get(mediaId); const $ = (0, cheerio_1.load)(data); mediaInfo.id = realMediaId; + let duration = $('div.details div.info p:contains("Duration:")').text().trim(); + if (duration != "") + mediaInfo.duration = duration.replace("Duration:", "").trim(); + let status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); + switch (status) { + case 'Ongoing': + mediaInfo.status = models_1.MediaStatus.ONGOING; + break; + case 'Completed': + mediaInfo.status = models_1.MediaStatus.COMPLETED; + break; + default: + mediaInfo.status = models_1.MediaStatus.UNKNOWN; + break; + } + mediaInfo.genres = []; + let genres = $('div.details div.info p:contains("Genre:")'); + genres.each((_index, element) => { + $(element).find('a').each((_, anchorElement) => { + var _a; + (_a = mediaInfo.genres) === null || _a === void 0 ? void 0 : _a.push($(anchorElement).text()); + }); + }); mediaInfo.title = $('.info > h1:nth-child(1)').text(); mediaInfo.otherNames = $('.other_name > a') .map((i, el) => $(el).text().trim()) .get(); mediaInfo.image = $('div.details > div.img > img').attr('src'); - // get the 3rd p tag mediaInfo.description = $('div.details div.info p:nth-child(6)').text(); mediaInfo.releaseDate = this.removeContainsFromString($('div.details div.info p:contains("Released:")').text(), 'Released'); mediaInfo.episodes = []; diff --git a/dist/providers/movies/dramacool.js.map b/dist/providers/movies/dramacool.js.map index 1edc8f2f1..43dfdc8d8 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;AAG/B,yCAUsB;AACtB,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,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,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,EAAE;iBACZ,CAAC;gBAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAA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C;gBACD,cAAc,CAAC,IAAI,CAAC;oBAClB,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;iBACjE,CAAC,CAAC;YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/providers/movies/flixhq.d.ts b/dist/providers/movies/flixhq.d.ts index 6691766d5..effea76fe 100644 --- a/dist/providers/movies/flixhq.d.ts +++ b/dist/providers/movies/flixhq.d.ts @@ -33,5 +33,7 @@ declare class FlixHQ extends MovieParser { fetchRecentTvShows: () => Promise; fetchTrendingMovies: () => Promise; fetchTrendingTvShows: () => Promise; + fetchByCountry: (country: string, page?: number) => Promise>; + fetchByGenre: (genre: string, page?: number) => Promise>; } export default FlixHQ; diff --git a/dist/providers/movies/flixhq.js b/dist/providers/movies/flixhq.js index f6bcb7c86..25cc267bf 100644 --- a/dist/providers/movies/flixhq.js +++ b/dist/providers/movies/flixhq.js @@ -326,14 +326,82 @@ class FlixHQ extends models_1.MovieParser { 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; + result.results.push({ + 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'), + season: $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(), + latestEpisode: (_d = $(el).find('div.film-detail > div.fd-infor > span:nth-child(3)').text()) !== null && _d !== void 0 ? _d : null, + type: $(el).find('div.film-detail > div.fd-infor > span.float-right').text() === 'Movie' + ? models_1.TvType.MOVIE + : models_1.TvType.TVSERIES, + }); + }) + .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; + const releaseDate = $(el).find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); + result.results.push({ + 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 > 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'), + 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.float-right').text() === 'Movie' + ? models_1.TvType.MOVIE + : models_1.TvType.TVSERIES, + }); + }); + return result; + } + catch (err) { + throw new Error(err.message); + } + }; } } // (async () => { -// const movie = new FlixHQ(); +// const movie = new FlixHQ(); // const search = await movie.search('the flash'); // // const movieInfo = await movie.fetchEpisodeSources('1168337', 'tv/watch-vincenzo-67955'); // // const recentTv = await movie.fetchTrendingTvShows(); -// console.log(search); +// // const genre = await movie.fetchByCountry('KR') +// // console.log(genre) // })(); exports.default = FlixHQ; //# sourceMappingURL=flixhq.js.map \ No newline at end of file diff --git a/dist/providers/movies/flixhq.js.map b/dist/providers/movies/flixhq.js.map index 46aa726f3..00428e892 100644 --- a/dist/providers/movies/flixhq.js.map +++ b/dist/providers/movies/flixhq.js.map @@ -1 +1 @@ -{"version":3,"file":"flixhq.js","sourceRoot":"","sources":["../../../src/providers/movies/flixhq.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAG/B,yCASsB;AACtB,iDAAqD;AAErD,MAAM,MAAO,SAAQ,oBAAW;IAAhC;;QACoB,SAAI,GAAG,QAAQ,CAAC;QACf,YAAO,GAAG,mBAAmB,CAAC;QAC9B,SAAI,GAAG,0EAA0E,CAAC;QAClF,cAAS,GAAG,eAAe,CAAC;QACtC,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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Aa,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC,IAAI,EAAE,IAAI,IAAI;wBAC9F,IAAI,EACF,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC,IAAI,EAAE,KAAK,OAAO;4BAChF,CAAC,CAAC,eAAM,CAAC,KAAK;4BACd,CAAC,CAAC,eAAM,CAAC,QAAQ;qBACtB,CAAC;oBACF,OAAO,MAAM,CAAC;gBAChB,CAAC,CAAC;qBACD,GAAG,EAAE,CAAC;gBACT,OAAO,OAAO,CAAC;YACjB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,iBAAiB;AACjB,gCAAgC;AAChC,oDAAoD;AACpD,gGAAgG;AAChG,4DAA4D;AAC5D,yBAAyB;AACzB,QAAQ;AAER,kBAAe,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"flixhq.js","sourceRoot":"","sources":["../../../src/providers/movies/flixhq.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAE/B,yCASsB;AACtB,iDAAqD;AAErD,MAAM,MAAO,SAAQ,oBAAW;IAAhC;;QACoB,SAAI,GAAG,QAAQ,CAAC;QACf,YAAO,GAAG,mBAAmB,CAAC;QAC9B,SAAI,GAAG,0EAA0E,CAAC;QAClF,cAAS,GAAG,eAAe,CAAC;QACtC,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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movies/dramacool.ts b/src/providers/movies/dramacool.ts index e64743003..72fad8bd7 100644 --- a/src/providers/movies/dramacool.ts +++ b/src/providers/movies/dramacool.ts @@ -11,6 +11,7 @@ import { IMovieResult, ISearch, ProxyConfig, + MediaStatus, } from '../../models'; import { MixDrop, AsianLoad, StreamTape, StreamSB } from '../../extractors'; @@ -68,13 +69,36 @@ class DramaCool extends MovieParser { const { data } = await this.client.get(mediaId); const $ = load(data); - mediaInfo.id = realMediaId; + mediaInfo.id = realMediaId; + + let duration = $('div.details div.info p:contains("Duration:")').text().trim(); + if ( duration != "" ) + mediaInfo.duration = duration.replace("Duration:", "").trim(); + let status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); + switch (status) { + case 'Ongoing': + mediaInfo.status = MediaStatus.ONGOING; + break; + case 'Completed': + mediaInfo.status = MediaStatus.COMPLETED; + break; + default: + mediaInfo.status = MediaStatus.UNKNOWN; + break; + } + mediaInfo.genres = []; + let genres = $('div.details div.info p:contains("Genre:")'); + genres.each((_index, element) => { + $(element).find('a').each((_, anchorElement) => { + mediaInfo.genres?.push($(anchorElement).text()); + }); + }); + mediaInfo.title = $('.info > h1:nth-child(1)').text(); mediaInfo.otherNames = $('.other_name > a') .map((i, el) => $(el).text().trim()) .get(); mediaInfo.image = $('div.details > div.img > img').attr('src'); - // get the 3rd p tag mediaInfo.description = $('div.details div.info p:nth-child(6)').text(); mediaInfo.releaseDate = this.removeContainsFromString( $('div.details div.info p:contains("Released:")').text(), From a2fad0a6737115ea2afee30d1ed45223c370b2b1 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Tue, 27 Feb 2024 18:07:12 -0500 Subject: [PATCH 02/15] Feat(dramacool): add (genres, duration, status) to fetchMediaInfo --- dist/providers/movies/dramacool.js | 2 +- dist/providers/movies/dramacool.js.map | 2 +- src/providers/movies/dramacool.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/providers/movies/dramacool.js b/dist/providers/movies/dramacool.js index 32ed022db..daf65f37f 100644 --- a/dist/providers/movies/dramacool.js +++ b/dist/providers/movies/dramacool.js @@ -50,7 +50,7 @@ class DramaCool extends models_1.MovieParser { const { data } = await this.client.get(mediaId); const $ = (0, cheerio_1.load)(data); mediaInfo.id = realMediaId; - let duration = $('div.details div.info p:contains("Duration:")').text().trim(); + let duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); if (duration != "") mediaInfo.duration = duration.replace("Duration:", "").trim(); let status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); diff --git a/dist/providers/movies/dramacool.js.map b/dist/providers/movies/dramacool.js.map index 43dfdc8d8..8bd595c1f 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;AAG/B,yCAWsB;AACtB,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,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,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,EAAE;iBACZ,CAAC;gBAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,IAAI,CAAC,OAAO,mBAAmB,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,IAA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AAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;YAErB,CAAC,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE;gBACtD,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC;gBACvC,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAE,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;gBAChE,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC9B,IAAI,GAAG,yBAAgB,CAAC,SAAS,CAAC;gBACpC,CAAC;gBACD,cAAc,CAAC,IAAI,CAAC;oBAClB,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;iBACjE,CAAC,CAAC;YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"dramacool.js","sourceRoot":"","sources":["../../../src/providers/movies/dramacool.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAG/B,yCAWsB;AACtB,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,SAAI,GACrB,2GAA2G,CAAC;QAC3F,cAAS,GAAG,kBAAkB,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YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/src/providers/movies/dramacool.ts b/src/providers/movies/dramacool.ts index 72fad8bd7..1e4130c0e 100644 --- a/src/providers/movies/dramacool.ts +++ b/src/providers/movies/dramacool.ts @@ -71,7 +71,7 @@ class DramaCool extends MovieParser { mediaInfo.id = realMediaId; - let duration = $('div.details div.info p:contains("Duration:")').text().trim(); + let duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); if ( duration != "" ) mediaInfo.duration = duration.replace("Duration:", "").trim(); let status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); From 59cee285307645637827c55b0727d6636752438a Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Tue, 27 Feb 2024 18:28:16 -0500 Subject: [PATCH 03/15] Feat(dramacool): add (genres, duration, status) to fetchMediaInfo --- test/movies/dramacool.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/movies/dramacool.test.ts b/test/movies/dramacool.test.ts index ec8121228..163e13d58 100644 --- a/test/movies/dramacool.test.ts +++ b/test/movies/dramacool.test.ts @@ -25,3 +25,18 @@ test('fetchEpisodeSources: returns filled object of streaming sources when given const data = await dramaCool.fetchEpisodeSources('vincenzo-2021-episode-1'); expect(data).not.toEqual({}); }); + +test('fetchMediaInfo: returns genres list when given a mediaId.', async () => { + const data = await dramaCool.fetchMediaInfo('drama-detail/vincenzo'); + expect(data.genres?.length).not.toEqual([]); +}); + +test('fetchMediaInfo: returns status when given a mediaId.', async () => { + const data = await dramaCool.fetchMediaInfo('drama-detail/vincenzo'); + expect(data.status).not.toEqual(undefined); +}); + +test('fetchMediaInfo: returns duration (if available) when given a mediaId.', async () => { + const data = await dramaCool.fetchMediaInfo('drama-detail/kimi-ga-kokoro-wo-kuretakara'); + expect(data.duration).not.toEqual(undefined); +}); From 9d9c2e5e75c9cd5f1ed618746747dbd25cc02d42 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Tue, 27 Feb 2024 23:33:21 +0000 Subject: [PATCH 04/15] [CodeFactor] Apply fixes --- src/providers/movies/dramacool.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/providers/movies/dramacool.ts b/src/providers/movies/dramacool.ts index 1e4130c0e..ce8e3770d 100644 --- a/src/providers/movies/dramacool.ts +++ b/src/providers/movies/dramacool.ts @@ -71,10 +71,10 @@ class DramaCool extends MovieParser { mediaInfo.id = realMediaId; - let duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); + const duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); if ( duration != "" ) mediaInfo.duration = duration.replace("Duration:", "").trim(); - let status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); + const status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); switch (status) { case 'Ongoing': mediaInfo.status = MediaStatus.ONGOING; @@ -87,7 +87,7 @@ class DramaCool extends MovieParser { break; } mediaInfo.genres = []; - let genres = $('div.details div.info p:contains("Genre:")'); + const genres = $('div.details div.info p:contains("Genre:")'); genres.each((_index, element) => { $(element).find('a').each((_, anchorElement) => { mediaInfo.genres?.push($(anchorElement).text()); From 7660dd44b8c48eec9de3bca165aaa84bfd2fd6fe Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Tue, 27 Feb 2024 18:41:46 -0500 Subject: [PATCH 05/15] Feat(dramacool): add (genres, duration, status) to fetchMediaInfo --- dist/providers/movies/dramacool.js | 6 +++--- dist/providers/movies/dramacool.js.map | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/providers/movies/dramacool.js b/dist/providers/movies/dramacool.js index daf65f37f..2d591091c 100644 --- a/dist/providers/movies/dramacool.js +++ b/dist/providers/movies/dramacool.js @@ -50,10 +50,10 @@ class DramaCool extends models_1.MovieParser { const { data } = await this.client.get(mediaId); const $ = (0, cheerio_1.load)(data); mediaInfo.id = realMediaId; - let duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); + const duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); if (duration != "") mediaInfo.duration = duration.replace("Duration:", "").trim(); - let status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); + const status = $('div.details div.info p:contains("Status:")').find('a').first().text().trim(); switch (status) { case 'Ongoing': mediaInfo.status = models_1.MediaStatus.ONGOING; @@ -66,7 +66,7 @@ class DramaCool extends models_1.MovieParser { break; } mediaInfo.genres = []; - let genres = $('div.details div.info p:contains("Genre:")'); + const genres = $('div.details div.info p:contains("Genre:")'); genres.each((_index, element) => { $(element).find('a').each((_, anchorElement) => { var _a; diff --git a/dist/providers/movies/dramacool.js.map b/dist/providers/movies/dramacool.js.map index 8bd595c1f..95ed48edc 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;AAG/B,yCAWsB;AACtB,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,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,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,EA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,CAAC,OAAO,CAAC;gBAAE,SAAS,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,SAAS,OAAO,CAAC;YAElF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAClD,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;YAErB,CAAC,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE;gBACtD,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC;gBACvC,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAE,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;gBAChE,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC9B,IAAI,GAAG,yBAAgB,CAAC,SAAS,CAAC;gBACpC,CAAC;gBACD,cAAc,CAAC,IAAI,CAAC;oBAClB,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;iBACjE,CAAC,CAAC;YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"dramacool.js","sourceRoot":"","sources":["../../../src/providers/movies/dramacool.ts"],"names":[],"mappings":";;AAAA,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I,EAAE,IAAI;oBACV,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;iBACjE,CAAC,CAAC;YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file From 5148be204e3eea246fe810785156d2e64390d8d1 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Wed, 28 Feb 2024 16:10:14 -0500 Subject: [PATCH 06/15] Feat(dramacool): add (totalPages) to search --- dist/providers/movies/dramacool.js | 13 ++++++++++++- dist/providers/movies/dramacool.js.map | 2 +- src/providers/movies/dramacool.ts | 15 +++++++++++++-- test/movies/dramacool.test.ts | 5 +++++ 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/dist/providers/movies/dramacool.js b/dist/providers/movies/dramacool.js index 2d591091c..0b2b3bb65 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.hr'; + this.baseUrl = 'https://dramacool.com.pa'; 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]); @@ -15,6 +15,7 @@ class DramaCool extends models_1.MovieParser { try { const searchResult = { currentPage: page, + totalPages: page, hasNextPage: false, results: [], }; @@ -23,6 +24,16 @@ class DramaCool extends models_1.MovieParser { const navSelector = 'ul.pagination'; searchResult.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('selected') : false; + const lastPage = $(navSelector).children().last().find('a').attr('href'); + if (lastPage != undefined && lastPage != "" && lastPage.includes("page=")) { + const maxPage = new URLSearchParams(lastPage).get("page"); + if (maxPage != null && !isNaN(parseInt(maxPage))) + searchResult.totalPages = parseInt(maxPage); + else if (searchResult.hasNextPage) + searchResult.totalPages = page + 1; + } + else if (searchResult.hasNextPage) + searchResult.totalPages = page + 1; $('div.block > div.tab-content > ul.list-episode-item > li').each((i, el) => { var _a; searchResult.results.push({ diff --git a/dist/providers/movies/dramacool.js.map b/dist/providers/movies/dramacool.js.map index 95ed48edc..33ec5bc77 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;AAG/B,yCAWsB;AACtB,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,sBAAsB,CAAC;QACjC,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,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,EAAE;iBACZ,CAAC;gBAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,I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E,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAClD,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;YAErB,CAAC,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE;gBACtD,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC;gBACvC,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAE,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;gBAChE,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC9B,IAAI,GAAG,yBAAgB,CAAC,SAAS,CAAC;gBACpC,CAAC;gBACD,cAAc,CAAC,IAAI,CAAC;oBAClB,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;iBACjE,CAAC,CAAC;YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"dramacool.js","sourceRoot":"","sources":["../../../src/providers/movies/dramacool.ts"],"names":[],"mappings":";;AAAA,qCAA+B;AAG/B,yCAUsB;AACtB,iDAA4E;AAE5E,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW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,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAClD,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;YAErB,CAAC,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE;gBACtD,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC;gBACvC,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAE,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;gBAChE,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC9B,IAAI,GAAG,yBAAgB,CAAC,SAAS,CAAC;gBACpC,CAAC;gBACD,cAAc,CAAC,IAAI,CAAC;oBAClB,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;iBACjE,CAAC,CAAC;YACL,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;CAoDF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/src/providers/movies/dramacool.ts b/src/providers/movies/dramacool.ts index ce8e3770d..8e0f05ff1 100644 --- a/src/providers/movies/dramacool.ts +++ b/src/providers/movies/dramacool.ts @@ -10,14 +10,13 @@ import { ISource, IMovieResult, ISearch, - ProxyConfig, MediaStatus, } from '../../models'; import { MixDrop, AsianLoad, StreamTape, StreamSB } from '../../extractors'; class DramaCool extends MovieParser { override readonly name = 'DramaCool'; - protected override baseUrl = 'https://dramacool.hr'; + protected override baseUrl = 'https://dramacool.com.pa'; protected override logo = 'https://play-lh.googleusercontent.com/IaCb2JXII0OV611MQ-wSA8v_SAs9XF6E3TMDiuxGGXo4wp9bI60GtDASIqdERSTO5XU'; protected override classPath = 'MOVIES.DramaCool'; @@ -27,6 +26,7 @@ class DramaCool extends MovieParser { try { const searchResult: ISearch = { currentPage: page, + totalPages: page, hasNextPage: false, results: [], }; @@ -42,6 +42,17 @@ class DramaCool extends MovieParser { searchResult.hasNextPage = $(navSelector).length > 0 ? !$(navSelector).children().last().hasClass('selected') : false; + const lastPage = $(navSelector).children().last().find('a').attr('href'); + if ( lastPage != undefined && lastPage != "" && lastPage.includes("page=") ) + { + const maxPage = new URLSearchParams(lastPage).get("page"); + if (maxPage != null && !isNaN(parseInt(maxPage))) + searchResult.totalPages = parseInt(maxPage); + else if (searchResult.hasNextPage) + searchResult.totalPages = page + 1; + }else if (searchResult.hasNextPage) + searchResult.totalPages = page + 1; + $('div.block > div.tab-content > ul.list-episode-item > li').each((i, el) => { searchResult.results.push({ id: $(el).find('a').attr('href')?.slice(1)!, diff --git a/test/movies/dramacool.test.ts b/test/movies/dramacool.test.ts index 163e13d58..66f7dc8b4 100644 --- a/test/movies/dramacool.test.ts +++ b/test/movies/dramacool.test.ts @@ -40,3 +40,8 @@ test('fetchMediaInfo: returns duration (if available) when given a mediaId.', as const data = await dramaCool.fetchMediaInfo('drama-detail/kimi-ga-kokoro-wo-kuretakara'); expect(data.duration).not.toEqual(undefined); }); + +test('Search: returns totalPages when search: Love.', async () => { + const data = await dramaCool.search('Love'); + expect(data.totalPages).not.toEqual(1); +}); \ No newline at end of file From 5d5897b063b9fd08e155206a6e5fd4ee82f44630 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 22:03:20 -0500 Subject: [PATCH 07/15] Fix(zoro): update the extractor in fetchEpisodeSources and update zoro domain. --- dist/extractors/index.d.ts | 3 +- dist/extractors/index.js | 4 +- dist/extractors/index.js.map | 2 +- dist/extractors/megacloud.d.ts | 39 +++++ dist/extractors/megacloud.js | 184 ++++++++++++++++++++++ dist/extractors/megacloud.js.map | 1 + dist/providers/anime/zoro.js | 16 +- dist/providers/anime/zoro.js.map | 2 +- dist/utils/index.d.ts | 4 +- dist/utils/index.js | 3 +- dist/utils/index.js.map | 2 +- src/extractors/index.ts | 2 + src/extractors/megacloud.ts | 252 +++++++++++++++++++++++++++++++ src/providers/anime/zoro.ts | 24 ++- src/utils/index.ts | 2 + 15 files changed, 523 insertions(+), 17 deletions(-) create mode 100644 dist/extractors/megacloud.d.ts create mode 100644 dist/extractors/megacloud.js create mode 100644 dist/extractors/megacloud.js.map create mode 100644 src/extractors/megacloud.ts diff --git a/dist/extractors/index.d.ts b/dist/extractors/index.d.ts index 41ea3c0c8..be33dba8a 100644 --- a/dist/extractors/index.d.ts +++ b/dist/extractors/index.d.ts @@ -7,6 +7,7 @@ import MixDrop from './mixdrop'; import Mp4Player from './mp4player'; import Mp4Upload from './mp4upload'; import RapidCloud from './rapidcloud'; +import MegaCloud from './megacloud'; import SmashyStream from './smashystream'; import StreamHub from './streamhub'; import StreamLare from './streamlare'; @@ -17,4 +18,4 @@ import VidCloud from './vidcloud'; import VidMoly from './vidmoly'; import VizCloud from './vizcloud'; import Voe from './voe'; -export { AsianLoad, BilibiliExtractor, Filemoon, GogoCDN, Kwik, MixDrop, Mp4Player, Mp4Upload, RapidCloud, SmashyStream, StreamHub, StreamLare, StreamSB, StreamTape, StreamWish, VidCloud, VidMoly, VizCloud, Voe, }; +export { AsianLoad, BilibiliExtractor, Filemoon, GogoCDN, Kwik, MixDrop, Mp4Player, Mp4Upload, RapidCloud, MegaCloud, SmashyStream, StreamHub, StreamLare, StreamSB, StreamTape, StreamWish, VidCloud, VidMoly, VizCloud, Voe, }; diff --git a/dist/extractors/index.js b/dist/extractors/index.js index 88c9d3fc6..9fa1e6fd5 100644 --- a/dist/extractors/index.js +++ b/dist/extractors/index.js @@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Voe = exports.VizCloud = exports.VidMoly = exports.VidCloud = exports.StreamWish = exports.StreamTape = exports.StreamSB = exports.StreamLare = exports.StreamHub = exports.SmashyStream = exports.RapidCloud = exports.Mp4Upload = exports.Mp4Player = exports.MixDrop = exports.Kwik = exports.GogoCDN = exports.Filemoon = exports.BilibiliExtractor = exports.AsianLoad = void 0; +exports.Voe = exports.VizCloud = exports.VidMoly = exports.VidCloud = exports.StreamWish = exports.StreamTape = exports.StreamSB = exports.StreamLare = exports.StreamHub = exports.SmashyStream = exports.MegaCloud = exports.RapidCloud = exports.Mp4Upload = exports.Mp4Player = exports.MixDrop = exports.Kwik = exports.GogoCDN = exports.Filemoon = exports.BilibiliExtractor = exports.AsianLoad = void 0; const asianload_1 = __importDefault(require("./asianload")); exports.AsianLoad = asianload_1.default; const bilibili_1 = __importDefault(require("./bilibili")); @@ -22,6 +22,8 @@ const mp4upload_1 = __importDefault(require("./mp4upload")); exports.Mp4Upload = mp4upload_1.default; const rapidcloud_1 = __importDefault(require("./rapidcloud")); exports.RapidCloud = rapidcloud_1.default; +const megacloud_1 = __importDefault(require("./megacloud")); +exports.MegaCloud = megacloud_1.default; const smashystream_1 = __importDefault(require("./smashystream")); exports.SmashyStream = smashystream_1.default; const streamhub_1 = __importDefault(require("./streamhub")); diff --git a/dist/extractors/index.js.map b/dist/extractors/index.js.map index 6c97fd00a..141d70a30 100644 --- a/dist/extractors/index.js.map +++ b/dist/extractors/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extractors/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AAqBlC,oBArBK,mBAAS,CAqBL;AApBX,0DAA2C;AAqBzC,4BArBK,kBAAiB,CAqBL;AApBnB,0DAAkC;AAqBhC,mBArBK,kBAAQ,CAqBL;AApBV,wDAAgC;AAqB9B,kBArBK,iBAAO,CAqBL;AApBT,kDAA0B;AAqBxB,eArBK,cAAI,CAqBL;AApBN,wDAAgC;AAqB9B,kBArBK,iBAAO,CAqBL;AApBT,4DAAoC;AAqBlC,oBArBK,mBAAS,CAqBL;AApBX,4DAAoC;AAqBlC,oBArBK,mBAAS,CAqBL;AApBX,8DAAsC;AAqBpC,qBArBK,oBAAU,CAqBL;AApBZ,kEAA0C;AAqBxC,uBArBK,sBAAY,CAqBL;AApBd,4DAAoC;AAqBlC,oBArBK,mBAAS,CAqBL;AApBX,8DAAsC;AAqBpC,qBArBK,oBAAU,CAqBL;AApBZ,0DAAkC;AAqBhC,mBArBK,kBAAQ,CAqBL;AApBV,8DAAsC;AAqBpC,qBArBK,oBAAU,CAqBL;AApBZ,8DAAsC;AAqBpC,qBArBK,oBAAU,CAqBL;AApBZ,0DAAkC;AAqBhC,mBArBK,kBAAQ,CAqBL;AApBV,wDAAgC;AAqB9B,kBArBK,iBAAO,CAqBL;AApBT,0DAAkC;AAqBhC,mBArBK,kBAAQ,CAqBL;AApBV,gDAAwB;AAqBtB,cArBK,aAAG,CAqBL"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extractors/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AAsBlC,oBAtBK,mBAAS,CAsBL;AArBX,0DAA2C;AAsBzC,4BAtBK,kBAAiB,CAsBL;AArBnB,0DAAkC;AAsBhC,mBAtBK,kBAAQ,CAsBL;AArBV,wDAAgC;AAsB9B,kBAtBK,iBAAO,CAsBL;AArBT,kDAA0B;AAsBxB,eAtBK,cAAI,CAsBL;AArBN,wDAAgC;AAsB9B,kBAtBK,iBAAO,CAsBL;AArBT,4DAAoC;AAsBlC,oBAtBK,mBAAS,CAsBL;AArBX,4DAAoC;AAsBlC,oBAtBK,mBAAS,CAsBL;AArBX,8DAAsC;AAsBpC,qBAtBK,oBAAU,CAsBL;AArBZ,4DAAoC;AAsBlC,oBAtBK,mBAAS,CAsBL;AArBX,kEAA0C;AAsBxC,uBAtBK,sBAAY,CAsBL;AArBd,4DAAoC;AAsBlC,oBAtBK,mBAAS,CAsBL;AArBX,8DAAsC;AAsBpC,qBAtBK,oBAAU,CAsBL;AArBZ,0DAAkC;AAsBhC,mBAtBK,kBAAQ,CAsBL;AArBV,8DAAsC;AAsBpC,qBAtBK,oBAAU,CAsBL;AArBZ,8DAAsC;AAsBpC,qBAtBK,oBAAU,CAsBL;AArBZ,0DAAkC;AAsBhC,mBAtBK,kBAAQ,CAsBL;AArBV,wDAAgC;AAsB9B,kBAtBK,iBAAO,CAsBL;AArBT,0DAAkC;AAsBhC,mBAtBK,kBAAQ,CAsBL;AArBV,gDAAwB;AAsBtB,cAtBK,aAAG,CAsBL"} \ No newline at end of file diff --git a/dist/extractors/megacloud.d.ts b/dist/extractors/megacloud.d.ts new file mode 100644 index 000000000..fa5f45e35 --- /dev/null +++ b/dist/extractors/megacloud.d.ts @@ -0,0 +1,39 @@ +type track = { + file: string; + kind: string; + label?: string; + default?: boolean; +}; +type intro_outro = { + start: number; + end: number; +}; +type unencryptedSrc = { + file: string; + type: string; +}; +type extractedSrc = { + sources: string | unencryptedSrc[]; + tracks: track[]; + encrypted: boolean; + intro: intro_outro; + outro: intro_outro; + server: number; +}; +interface ExtractedData extends Pick { + sources: { + url: string; + type: string; + }[]; +} +declare class MegaCloud { + private serverName; + extract(videoUrl: URL): Promise; + extractVariables(text: string, sourceName: string): number[]; + getSecret(encryptedString: string, values: number[]): { + secret: string; + encryptedSource: string; + }; + decrypt(encrypted: string, keyOrSecret: string, maybe_iv?: string): string; +} +export default MegaCloud; diff --git a/dist/extractors/megacloud.js b/dist/extractors/megacloud.js new file mode 100644 index 000000000..c7b3b6cdf --- /dev/null +++ b/dist/extractors/megacloud.js @@ -0,0 +1,184 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const axios_1 = __importDefault(require("axios")); +const crypto_1 = __importDefault(require("crypto")); +const http_errors_1 = __importDefault(require("http-errors")); +// https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 +const megacloud = { + script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", + sources: "https://megacloud.tv/embed-2/ajax/e-1/getSources?id=", +}; +class MegaCloud { + constructor() { + this.serverName = "megacloud"; + } + async extract(videoUrl) { + var _a, _b, _c; + try { + const extractedData = { + tracks: [], + intro: { + start: 0, + end: 0, + }, + outro: { + start: 0, + end: 0, + }, + sources: [], + }; + const videoId = (_c = (_b = (_a = videoUrl === null || videoUrl === void 0 ? void 0 : videoUrl.href) === null || _a === void 0 ? void 0 : _a.split("/")) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split("?")[0]; + const { data: srcsData } = await axios_1.default.get(megacloud.sources.concat(videoId || ""), { + headers: { + Accept: "*/*", + "X-Requested-With": "XMLHttpRequest", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", + Referer: videoUrl.href, + }, + }); + if (!srcsData) { + throw http_errors_1.default.NotFound("Url may have an invalid video id"); + } + // console.log(JSON.stringify(srcsData, null, 2)); + const encryptedString = srcsData.sources; + if (srcsData.encrypted && Array.isArray(encryptedString)) { + extractedData.intro = srcsData.intro; + extractedData.outro = srcsData.outro; + extractedData.tracks = srcsData.tracks; + extractedData.sources = encryptedString.map((s) => ({ + url: s.file, + type: s.type, + })); + return extractedData; + } + console.log("\n encryptedString: ", encryptedString); + let text; + const { data } = await axios_1.default.get(megacloud.script.concat(Date.now().toString())); + console.log("\n data: ", megacloud.script.concat(Date.now().toString())); + text = data; + if (!text) { + throw http_errors_1.default.InternalServerError("Couldn't fetch script to decrypt resource"); + } + const vars = this.extractVariables(text, "MEGACLOUD"); + console.log("\n vars: ", vars); + const { secret, encryptedSource } = this.getSecret(encryptedString, vars); + const decrypted = this.decrypt(encryptedSource, secret); + try { + const sources = JSON.parse(decrypted); + extractedData.intro = srcsData.intro; + extractedData.outro = srcsData.outro; + extractedData.tracks = srcsData.tracks; + extractedData.sources = sources.map((s) => ({ + url: s.file, + type: s.type, + })); + return extractedData; + } + catch (error) { + throw http_errors_1.default.InternalServerError("Failed to decrypt resource"); + } + } + catch (err) { + // console.log(err); + throw err; + } + } + extractVariables(text, sourceName) { + var _a, _b, _c, _d; + // extract needed variables + let allvars; + if (sourceName !== "MEGACLOUD") { + allvars = + (_b = (_a = text + .match(/const (?:\w{1,2}=(?:'.{0,50}?'|\w{1,2}\(.{0,20}?\)).{0,20}?,){7}.+?;/gm)) === null || _a === void 0 ? void 0 : _a.at(-1)) !== null && _b !== void 0 ? _b : ""; + } + else { + allvars = + (_d = (_c = text + .match(/const \w{1,2}=new URLSearchParams.+?;(?=function)/gm)) === null || _c === void 0 ? void 0 : _c.at(-1)) !== null && _d !== void 0 ? _d : ""; + } + // and convert their values into an array of numbers + const vars = allvars + .slice(0, -1) + .split("=") + .slice(1) + .map((pair) => Number(pair.split(",").at(0))) + .filter((num) => num === 0 || num); + return vars; + } + getSecret(encryptedString, values) { + let secret = "", encryptedSource = encryptedString, totalInc = 0; + for (let i = 0; i < values[0]; i++) { + let start, inc; + switch (i) { + case 0: + (start = values[2]), (inc = values[1]); + break; + case 1: + (start = values[4]), (inc = values[3]); + break; + case 2: + (start = values[6]), (inc = values[5]); + break; + case 3: + (start = values[8]), (inc = values[7]); + break; + case 4: + (start = values[10]), (inc = values[9]); + break; + case 5: + (start = values[12]), (inc = values[11]); + break; + case 6: + (start = values[14]), (inc = values[13]); + break; + case 7: + (start = values[16]), (inc = values[15]); + break; + case 8: + (start = values[18]), (inc = values[17]); + } + const from = start + totalInc, to = from + inc; + (secret += encryptedString.slice(from, to)), + (encryptedSource = encryptedSource.replace(encryptedString.substring(from, to), "")), + (totalInc += inc); + } + return { secret, encryptedSource }; + } + decrypt(encrypted, keyOrSecret, maybe_iv) { + let key; + let iv; + let contents; + if (maybe_iv) { + key = keyOrSecret; + iv = maybe_iv; + contents = encrypted; + } + else { + // copied from 'https://github.com/brix/crypto-js/issues/468' + const cypher = Buffer.from(encrypted, "base64"); + const salt = cypher.subarray(8, 16); + const password = Buffer.concat([ + Buffer.from(keyOrSecret, "binary"), + salt, + ]); + const md5Hashes = []; + let digest = password; + for (let i = 0; i < 3; i++) { + md5Hashes[i] = crypto_1.default.createHash("md5").update(digest).digest(); + digest = Buffer.concat([md5Hashes[i], password]); + } + key = Buffer.concat([md5Hashes[0], md5Hashes[1]]); + iv = md5Hashes[2]; + contents = cypher.subarray(16); + } + const decipher = crypto_1.default.createDecipheriv("aes-256-cbc", key, iv); + const decrypted = decipher.update(contents, typeof contents === "string" ? "base64" : undefined, "utf8") + decipher.final(); + return decrypted; + } +} +exports.default = MegaCloud; +//# sourceMappingURL=megacloud.js.map \ No newline at end of file diff --git a/dist/extractors/megacloud.js.map b/dist/extractors/megacloud.js.map new file mode 100644 index 000000000..0628c15c6 --- /dev/null +++ b/dist/extractors/megacloud.js.map @@ -0,0 +1 @@ +{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAC5B,8DAA0C;AAE1C,oDAAoD;AAEpD,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AAiCX,MAAM,SAAS;IAAf;QACU,eAAU,GAAG,WAAW,CAAC;IA8MnC,CAAC;IA5MC,KAAK,CAAC,OAAO,CAAC,QAAa;;QACzB,IAAI,CAAC;YACH,MAAM,aAAa,GAAkB;gBACnC,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE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AAC,MAAM,CAAC;gBAC7B,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;gBAClC,IAAI;aACL,CAAC,CAAC;YACH,MAAM,SAAS,GAAG,EAAE,CAAC;YACrB,IAAI,MAAM,GAAG,QAAQ,CAAC;YACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3B,SAAS,CAAC,CAAC,CAAC,GAAG,gBAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;gBAChE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;YACnD,CAAC;YACD,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClD,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YAClB,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC;QAED,MAAM,QAAQ,GAAG,gBAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,CACb,QAAe,EACf,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/providers/anime/zoro.js b/dist/providers/anime/zoro.js index a4b50c383..30acec74f 100644 --- a/dist/providers/anime/zoro.js +++ b/dist/providers/anime/zoro.js @@ -8,7 +8,7 @@ class Zoro extends models_1.AnimeParser { constructor() { super(...arguments); this.name = 'Zoro'; - this.baseUrl = 'https://aniwatch.to'; + this.baseUrl = 'https://hianime.to'; this.logo = 'https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/7e/91/00/7e9100ee-2b62-0942-4cdc-e9b93252ce1c/source/512x512bb.jpg'; this.classPath = 'ANIME.Zoro'; /** @@ -81,12 +81,13 @@ class Zoro extends models_1.AnimeParser { */ this.fetchEpisodeSources = async (episodeId, server = models_1.StreamingServers.VidCloud) => { var _a; + console.log("3. LINK: ", episodeId); if (episodeId.startsWith('http')) { const serverUrl = new URL(episodeId); switch (server) { case models_1.StreamingServers.VidStreaming: case models_1.StreamingServers.VidCloud: - return Object.assign({}, (await new utils_1.RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl))); + return Object.assign({}, (await new utils_1.MegaCloud().extract(serverUrl))); case models_1.StreamingServers.StreamSB: return { headers: { @@ -103,7 +104,7 @@ class Zoro extends models_1.AnimeParser { }; default: case models_1.StreamingServers.VidCloud: - return Object.assign({ headers: { Referer: serverUrl.href } }, (await new utils_1.RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl))); + return Object.assign({ headers: { Referer: serverUrl.href } }, (await new utils_1.MegaCloud().extract(serverUrl))); } } if (!episodeId.includes('$episode$')) @@ -116,6 +117,7 @@ class Zoro extends models_1.AnimeParser { .replace(/\$auto|\$sub|\$dub/gi, '')}`; try { const { data } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`); + console.log("1. URL: " + `${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`); const $ = (0, cheerio_1.load)(data.html); /** * vidtreaming -> 4 @@ -125,25 +127,30 @@ class Zoro extends models_1.AnimeParser { */ let serverId = ''; try { + console.log("Server: " + server); switch (server) { case models_1.StreamingServers.VidCloud: + console.log("- Server: " + "VidCloud"); serverId = this.retrieveServerId($, 1, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('RapidCloud not found'); break; case models_1.StreamingServers.VidStreaming: + console.log("- Server: " + "VidStreaming"); serverId = this.retrieveServerId($, 4, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('vidtreaming not found'); break; case models_1.StreamingServers.StreamSB: + console.log("- Server: " + "StreamSB"); serverId = this.retrieveServerId($, 5, subOrDub); if (!serverId) throw new Error('StreamSB not found'); break; case models_1.StreamingServers.StreamTape: + console.log("- Server: " + "StreamTape"); serverId = this.retrieveServerId($, 3, subOrDub); if (!serverId) throw new Error('StreamTape not found'); @@ -154,6 +161,7 @@ class Zoro extends models_1.AnimeParser { throw new Error("Couldn't find server. Try another server"); } const { data: { link }, } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); + console.log("2. LINK: " + `${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); return await this.fetchEpisodeSources(link, server); } catch (err) { @@ -161,7 +169,7 @@ class Zoro extends models_1.AnimeParser { } }; this.retrieveServerId = ($, index, subOrDub) => { - return $(`div.ps_-block.ps_-block-sub.servers-${subOrDub} > div.ps__-list > div`) + return $(`.ps_-block.ps_-block-sub.servers-${subOrDub} > .ps__-list .server-item`) .map((i, el) => ($(el).attr('data-server-id') == `${index}` ? $(el) : null)) .get()[0] .attr('data-id'); diff --git a/dist/providers/anime/zoro.js.map b/dist/providers/anime/zoro.js.map index 30a125f39..da622a438 100644 --- a/dist/providers/anime/zoro.js.map +++ b/dist/providers/anime/zoro.js.map @@ -1 +1 @@ -{"version":3,"file":"zoro.js","sourceRoot":"","sources":["../../../src/providers/anime/zoro.ts"],"names":[],"mappings":";;AACA,qCAA+B;AAE/B,yCAasB;AAEtB,uCAA+D;AAC/D,uCAAyC;AAEzC,MAAM,IAAK,SAAQ,oBAAW;IAA9B;;QACoB,SAAI,GAAG,MAAM,CAAC;QACb,YAAO,GAAG,qBAAqB,CAAC;QAChC,SAAI,GACrB,0HAA0H,CAAC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C"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts index ed2fbd599..0c3d89a51 100644 --- a/dist/utils/index.d.ts +++ b/dist/utils/index.d.ts @@ -1,5 +1,5 @@ -import { GogoCDN, StreamSB, VidCloud, MixDrop, Kwik, RapidCloud, StreamTape, VizCloud, Filemoon, BilibiliExtractor, AsianLoad, SmashyStream, StreamHub, VidMoly } from '../extractors'; +import { GogoCDN, StreamSB, VidCloud, MixDrop, Kwik, RapidCloud, MegaCloud, StreamTape, VizCloud, Filemoon, BilibiliExtractor, AsianLoad, SmashyStream, StreamHub, VidMoly } from '../extractors'; import { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter, range, getDays, days, isJson, convertDuration, substringAfter, substringBefore, compareTwoStrings } from './utils'; import { anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, anilistCharacterQuery } from './queries'; import { parsePostInfo } from './getComics'; -export { USER_AGENT, GogoCDN, StreamSB, SmashyStream, StreamHub, splitAuthor, floorID, formatTitle, parsePostInfo, genElement, capitalizeFirstLetter, VidCloud, MixDrop, Kwik, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, range, RapidCloud, StreamTape, VizCloud, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, Filemoon, anilistCharacterQuery, getDays, days, isJson, convertDuration, BilibiliExtractor, AsianLoad, substringAfter, substringBefore, compareTwoStrings, VidMoly, }; +export { USER_AGENT, GogoCDN, StreamSB, SmashyStream, StreamHub, splitAuthor, floorID, formatTitle, parsePostInfo, genElement, capitalizeFirstLetter, VidCloud, MixDrop, Kwik, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, range, RapidCloud, MegaCloud, StreamTape, VizCloud, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, Filemoon, anilistCharacterQuery, getDays, days, isJson, convertDuration, BilibiliExtractor, AsianLoad, substringAfter, substringBefore, compareTwoStrings, VidMoly, }; diff --git a/dist/utils/index.js b/dist/utils/index.js index 10a836a79..e4dd433ca 100644 --- a/dist/utils/index.js +++ b/dist/utils/index.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.VidMoly = exports.compareTwoStrings = exports.substringBefore = exports.substringAfter = exports.AsianLoad = exports.BilibiliExtractor = exports.convertDuration = exports.isJson = exports.days = exports.getDays = exports.anilistCharacterQuery = exports.Filemoon = exports.anilistSiteStatisticsQuery = exports.anilistAdvancedQuery = exports.anilistGenresQuery = exports.anilistAiringScheduleQuery = exports.anilistPopularQuery = exports.anilistTrendingQuery = exports.VizCloud = exports.StreamTape = exports.RapidCloud = exports.range = exports.kitsuSearchQuery = exports.anilistMediaDetailQuery = exports.anilistSearchQuery = exports.Kwik = exports.MixDrop = exports.VidCloud = exports.capitalizeFirstLetter = exports.genElement = exports.parsePostInfo = exports.formatTitle = exports.floorID = exports.splitAuthor = exports.StreamHub = exports.SmashyStream = exports.StreamSB = exports.GogoCDN = exports.USER_AGENT = void 0; +exports.VidMoly = exports.compareTwoStrings = exports.substringBefore = exports.substringAfter = exports.AsianLoad = exports.BilibiliExtractor = exports.convertDuration = exports.isJson = exports.days = exports.getDays = exports.anilistCharacterQuery = exports.Filemoon = exports.anilistSiteStatisticsQuery = exports.anilistAdvancedQuery = exports.anilistGenresQuery = exports.anilistAiringScheduleQuery = exports.anilistPopularQuery = exports.anilistTrendingQuery = exports.VizCloud = exports.StreamTape = exports.MegaCloud = exports.RapidCloud = exports.range = exports.kitsuSearchQuery = exports.anilistMediaDetailQuery = exports.anilistSearchQuery = exports.Kwik = exports.MixDrop = exports.VidCloud = exports.capitalizeFirstLetter = exports.genElement = exports.parsePostInfo = exports.formatTitle = exports.floorID = exports.splitAuthor = exports.StreamHub = exports.SmashyStream = exports.StreamSB = exports.GogoCDN = exports.USER_AGENT = void 0; const extractors_1 = require("../extractors"); Object.defineProperty(exports, "GogoCDN", { enumerable: true, get: function () { return extractors_1.GogoCDN; } }); Object.defineProperty(exports, "StreamSB", { enumerable: true, get: function () { return extractors_1.StreamSB; } }); @@ -8,6 +8,7 @@ Object.defineProperty(exports, "VidCloud", { enumerable: true, get: function () Object.defineProperty(exports, "MixDrop", { enumerable: true, get: function () { return extractors_1.MixDrop; } }); Object.defineProperty(exports, "Kwik", { enumerable: true, get: function () { return extractors_1.Kwik; } }); Object.defineProperty(exports, "RapidCloud", { enumerable: true, get: function () { return extractors_1.RapidCloud; } }); +Object.defineProperty(exports, "MegaCloud", { enumerable: true, get: function () { return extractors_1.MegaCloud; } }); Object.defineProperty(exports, "StreamTape", { enumerable: true, get: function () { return extractors_1.StreamTape; } }); Object.defineProperty(exports, "VizCloud", { enumerable: true, get: function () { return extractors_1.VizCloud; } }); Object.defineProperty(exports, "Filemoon", { enumerable: true, get: function () { return extractors_1.Filemoon; } }); diff --git a/dist/utils/index.js.map b/dist/utils/index.js.map index 90f0444c5..e3941a8bc 100644 --- a/dist/utils/index.js.map +++ b/dist/utils/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,8CAeuB;AAiCrB,wFA/CA,oBAAO,OA+CA;AACP,yFA/CA,qBAAQ,OA+CA;AASR,yFAvDA,qBAAQ,OAuDA;AACR,wFAvDA,oBAAO,OAuDA;AACP,qFAvDA,iBAAI,OAuDA;AAKJ,2FA3DA,uBAAU,OA2DA;AACV,2FA3DA,uBAAU,OA2DA;AACV,yFA3DA,qBAAQ,OA2DA;AAOR,yFAjEA,qBAAQ,OAiEA;AAMR,kGAtEA,8BAAiB,OAsEA;AACjB,0FAtEA,sBAAS,OAsEA;AA/BT,6FAtCA,yBAAY,O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BAAiB,OAuEA;AACjB,0FAvEA,sBAAS,OAuEA;AAhCT,6FAtCA,yBAAY,OAsCA;AACZ,0FAtCA,sBAAS,OAsCA;AAmCT,wFAxEA,oBAAO,OAwEA;AAtET,mCAeiB;AAgBf,2FA9BA,kBAAU,OA8BA;AAKV,4FAlCA,mBAAW,OAkCA;AACX,wFAlCA,eAAO,OAkCA;AACP,4FAlCA,mBAAW,OAkCA;AAEX,2FAnCA,kBAAU,OAmCA;AACV,sGAnCA,6BAAqB,OAmCA;AAOrB,sFAzCA,aAAK,OAyCA;AAaL,wFArDA,eAAO,OAqDA;AACP,qFArDA,YAAI,OAqDA;AACJ,uFArDA,cAAM,OAqDA;AACN,gGArDA,uBAAe,OAqDA;AAGf,+FAvDA,sBAAc,OAuDA;AACd,gGAvDA,uBAAe,OAuDA;AACf,kGAvDA,yBAAiB,OAuDA;AArDnB,uCAWmB;AAkBjB,mGA5BA,4BAAkB,OA4BA;AAClB,wGA5BA,iCAAuB,OA4BA;AACvB,iGA5BA,0BAAgB,OA4BA;AAMhB,qGAjCA,8BAAoB,OAiCA;AACpB,oGAjCA,6BAAmB,OAiCA;AACnB,2GAjCA,oCAA0B,OAiCA;AAC1B,mGAjCA,4BAAkB,OAiCA;AAClB,qGAjCA,8BAAoB,OAiCA;AACpB,2GAjCA,oCAA0B,OAiCA;AAE1B,sGAlCA,+BAAqB,OAkCA;AAhCvB,2CAA4C;AAW1C,8FAXO,yBAAa,OAWP"} \ No newline at end of file diff --git a/src/extractors/index.ts b/src/extractors/index.ts index 42a17b6d4..5272809bd 100644 --- a/src/extractors/index.ts +++ b/src/extractors/index.ts @@ -7,6 +7,7 @@ import MixDrop from './mixdrop'; import Mp4Player from './mp4player'; import Mp4Upload from './mp4upload'; import RapidCloud from './rapidcloud'; +import MegaCloud from './megacloud'; import SmashyStream from './smashystream'; import StreamHub from './streamhub'; import StreamLare from './streamlare'; @@ -28,6 +29,7 @@ export { Mp4Player, Mp4Upload, RapidCloud, + MegaCloud, SmashyStream, StreamHub, StreamLare, diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts new file mode 100644 index 000000000..470c886c0 --- /dev/null +++ b/src/extractors/megacloud.ts @@ -0,0 +1,252 @@ +import axios from "axios"; +import crypto from "crypto"; +import createHttpError from "http-errors"; + +// https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 + +const megacloud = { + script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", + sources: "https://megacloud.tv/embed-2/ajax/e-1/getSources?id=", +} as const; + +type track = { + file: string; + kind: string; + label?: string; + default?: boolean; +}; + +type intro_outro = { + start: number; + end: number; +}; + +type unencryptedSrc = { + file: string; + type: string; +}; + +type extractedSrc = { + sources: string | unencryptedSrc[]; + tracks: track[]; + encrypted: boolean; + intro: intro_outro; + outro: intro_outro; + server: number; +}; + +interface ExtractedData + extends Pick { + sources: { url: string; type: string }[]; +} + +class MegaCloud { + private serverName = "megacloud"; + + async extract(videoUrl: URL) { + try { + const extractedData: ExtractedData = { + tracks: [], + intro: { + start: 0, + end: 0, + }, + outro: { + start: 0, + end: 0, + }, + sources: [], + }; + + const videoId = videoUrl?.href?.split("/")?.pop()?.split("?")[0]; + const { data: srcsData } = await axios.get( + megacloud.sources.concat(videoId || ""), + { + headers: { + Accept: "*/*", + "X-Requested-With": "XMLHttpRequest", + "User-Agent": + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", + Referer: videoUrl.href, + }, + } + ); + if (!srcsData) { + throw createHttpError.NotFound("Url may have an invalid video id"); + } + + // console.log(JSON.stringify(srcsData, null, 2)); + + const encryptedString = srcsData.sources; + if (srcsData.encrypted && Array.isArray(encryptedString)) { + extractedData.intro = srcsData.intro; + extractedData.outro = srcsData.outro; + extractedData.tracks = srcsData.tracks; + extractedData.sources = encryptedString.map((s) => ({ + url: s.file, + type: s.type, + })); + + return extractedData; + } + + console.log("\n encryptedString: ", encryptedString); + + let text: string; + const { data } = await axios.get( + megacloud.script.concat(Date.now().toString()) + ); + + console.log("\n data: ", megacloud.script.concat(Date.now().toString())); + + text = data; + if (!text) { + throw createHttpError.InternalServerError( + "Couldn't fetch script to decrypt resource" + ); + } + + const vars = this.extractVariables(text, "MEGACLOUD"); + + console.log("\n vars: ", vars); + + const { secret, encryptedSource } = this.getSecret( + encryptedString as string, + vars + ); + const decrypted = this.decrypt(encryptedSource, secret); + try { + const sources = JSON.parse(decrypted); + extractedData.intro = srcsData.intro; + extractedData.outro = srcsData.outro; + extractedData.tracks = srcsData.tracks; + extractedData.sources = sources.map((s: any) => ({ + url: s.file, + type: s.type, + })); + + return extractedData; + } catch (error) { + throw createHttpError.InternalServerError("Failed to decrypt resource"); + } + } catch (err) { + // console.log(err); + throw err; + } + } + + extractVariables(text: string, sourceName: string) { + // extract needed variables + let allvars; + if (sourceName !== "MEGACLOUD") { + allvars = + text + .match( + /const (?:\w{1,2}=(?:'.{0,50}?'|\w{1,2}\(.{0,20}?\)).{0,20}?,){7}.+?;/gm + ) + ?.at(-1) ?? ""; + } else { + allvars = + text + .match(/const \w{1,2}=new URLSearchParams.+?;(?=function)/gm) + ?.at(-1) ?? ""; + } + // and convert their values into an array of numbers + const vars = allvars + .slice(0, -1) + .split("=") + .slice(1) + .map((pair) => Number(pair.split(",").at(0))) + .filter((num) => num === 0 || num); + + return vars; + } + + getSecret(encryptedString: string, values: number[]) { + let secret = "", + encryptedSource = encryptedString, + totalInc = 0; + + for (let i = 0; i < values[0]!; i++) { + let start, inc; + switch (i) { + case 0: + (start = values[2]), (inc = values[1]); + break; + case 1: + (start = values[4]), (inc = values[3]); + break; + case 2: + (start = values[6]), (inc = values[5]); + break; + case 3: + (start = values[8]), (inc = values[7]); + break; + case 4: + (start = values[10]), (inc = values[9]); + break; + case 5: + (start = values[12]), (inc = values[11]); + break; + case 6: + (start = values[14]), (inc = values[13]); + break; + case 7: + (start = values[16]), (inc = values[15]); + break; + case 8: + (start = values[18]), (inc = values[17]); + } + const from = start! + totalInc, + to = from + inc!; + (secret += encryptedString.slice(from, to)), + (encryptedSource = encryptedSource.replace( + encryptedString.substring(from, to), + "" + )), + (totalInc += inc!); + } + + return { secret, encryptedSource }; + } + + decrypt(encrypted: string, keyOrSecret: string, maybe_iv?: string) { + let key; + let iv; + let contents; + if (maybe_iv) { + key = keyOrSecret; + iv = maybe_iv; + contents = encrypted; + } else { + // copied from 'https://github.com/brix/crypto-js/issues/468' + const cypher = Buffer.from(encrypted, "base64"); + const salt = cypher.subarray(8, 16); + const password = Buffer.concat([ + Buffer.from(keyOrSecret, "binary"), + salt, + ]); + const md5Hashes = []; + let digest = password; + for (let i = 0; i < 3; i++) { + md5Hashes[i] = crypto.createHash("md5").update(digest).digest(); + digest = Buffer.concat([md5Hashes[i], password]); + } + key = Buffer.concat([md5Hashes[0], md5Hashes[1]]); + iv = md5Hashes[2]; + contents = cypher.subarray(16); + } + + const decipher = crypto.createDecipheriv("aes-256-cbc", key, iv); + const decrypted = + decipher.update( + contents as any, + typeof contents === "string" ? "base64" : undefined, + "utf8" + ) + decipher.final(); + + return decrypted; + } +} + +export default MegaCloud; diff --git a/src/providers/anime/zoro.ts b/src/providers/anime/zoro.ts index eec528b09..5814d91bd 100644 --- a/src/providers/anime/zoro.ts +++ b/src/providers/anime/zoro.ts @@ -16,12 +16,12 @@ import { ProxyConfig, } from '../../models'; -import { StreamSB, RapidCloud, StreamTape } from '../../utils'; +import { StreamSB, RapidCloud, MegaCloud, StreamTape } from '../../utils'; import { USER_AGENT } from '../../utils'; class Zoro extends AnimeParser { override readonly name = 'Zoro'; - protected override baseUrl = 'https://aniwatch.to'; + protected override baseUrl = 'https://hianime.to'; protected override logo = 'https://is3-ssl.mzstatic.com/image/thumb/Purple112/v4/7e/91/00/7e9100ee-2b62-0942-4cdc-e9b93252ce1c/source/512x512bb.jpg'; protected override classPath = 'ANIME.Zoro'; @@ -186,13 +186,16 @@ class Zoro extends AnimeParser { episodeId: string, server: StreamingServers = StreamingServers.VidCloud ): Promise => { + console.log("3. LINK: ", episodeId); + if (episodeId.startsWith('http')) { const serverUrl = new URL(episodeId); switch (server) { case StreamingServers.VidStreaming: case StreamingServers.VidCloud: return { - ...(await new RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), + //...(await new RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), + ...(await new MegaCloud().extract(serverUrl)), }; case StreamingServers.StreamSB: return { @@ -212,7 +215,8 @@ class Zoro extends AnimeParser { case StreamingServers.VidCloud: return { headers: { Referer: serverUrl.href }, - ...(await new RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), + //...(await new RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), + ...(await new MegaCloud().extract(serverUrl)), }; } } @@ -232,6 +236,8 @@ class Zoro extends AnimeParser { `${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}` ); + console.log("1. URL: " + `${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`); + const $ = load(data.html); /** @@ -242,25 +248,30 @@ class Zoro extends AnimeParser { */ let serverId = ''; try { + console.log("Server: " + server); switch (server) { case StreamingServers.VidCloud: + console.log("- Server: " + "VidCloud"); serverId = this.retrieveServerId($, 1, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('RapidCloud not found'); break; case StreamingServers.VidStreaming: + console.log("- Server: " + "VidStreaming"); serverId = this.retrieveServerId($, 4, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('vidtreaming not found'); break; case StreamingServers.StreamSB: + console.log("- Server: " + "StreamSB"); serverId = this.retrieveServerId($, 5, subOrDub); if (!serverId) throw new Error('StreamSB not found'); break; case StreamingServers.StreamTape: + console.log("- Server: " + "StreamTape"); serverId = this.retrieveServerId($, 3, subOrDub); if (!serverId) throw new Error('StreamTape not found'); @@ -273,6 +284,9 @@ class Zoro extends AnimeParser { const { data: { link }, } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); + + console.log("2. LINK: " + `${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); + return await this.fetchEpisodeSources(link, server); } catch (err) { throw err; @@ -280,7 +294,7 @@ class Zoro extends AnimeParser { }; private retrieveServerId = ($: any, index: number, subOrDub: 'sub' | 'dub') => { - return $(`div.ps_-block.ps_-block-sub.servers-${subOrDub} > div.ps__-list > div`) + return $(`.ps_-block.ps_-block-sub.servers-${subOrDub} > .ps__-list .server-item`) .map((i: any, el: any) => ($(el).attr('data-server-id') == `${index}` ? $(el) : null)) .get()[0] .attr('data-id')!; diff --git a/src/utils/index.ts b/src/utils/index.ts index f6dace1d6..635f30e7f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -5,6 +5,7 @@ import { MixDrop, Kwik, RapidCloud, + MegaCloud, StreamTape, VizCloud, Filemoon, @@ -64,6 +65,7 @@ export { kitsuSearchQuery, range, RapidCloud, + MegaCloud, StreamTape, VizCloud, anilistTrendingQuery, From d88a3c8cdfa83f7f39821ad9977644966de8e915 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 22:13:15 -0500 Subject: [PATCH 08/15] Fix(zoro): add: @types/http-errors --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 17da0d9a7..7f1be27ce 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ }, "homepage": "https://github.com/consumet/consumet.ts#readme", "dependencies": { + "@types/http-errors": "^2.0.4", "ascii-url-encoder": "^1.2.0", "axios": "^0.27.2", "cheerio": "^1.0.0-rc.12", From e4b6479830a891794348cd2c2c0b36188e9260dc Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 22:34:49 -0500 Subject: [PATCH 09/15] Fix(zoro): remove: @types/http-errors and build --- dist/extractors/megacloud.js | 7 +++---- dist/extractors/megacloud.js.map | 2 +- package.json | 1 - src/extractors/megacloud.ts | 7 +++---- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/dist/extractors/megacloud.js b/dist/extractors/megacloud.js index c7b3b6cdf..b2cb5f387 100644 --- a/dist/extractors/megacloud.js +++ b/dist/extractors/megacloud.js @@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const axios_1 = __importDefault(require("axios")); const crypto_1 = __importDefault(require("crypto")); -const http_errors_1 = __importDefault(require("http-errors")); // https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 const megacloud = { script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", @@ -40,7 +39,7 @@ class MegaCloud { }, }); if (!srcsData) { - throw http_errors_1.default.NotFound("Url may have an invalid video id"); + throw new Error("Url may have an invalid video id"); } // console.log(JSON.stringify(srcsData, null, 2)); const encryptedString = srcsData.sources; @@ -60,7 +59,7 @@ class MegaCloud { console.log("\n data: ", megacloud.script.concat(Date.now().toString())); text = data; if (!text) { - throw http_errors_1.default.InternalServerError("Couldn't fetch script to decrypt resource"); + throw new Error("Couldn't fetch script to decrypt resource"); } const vars = this.extractVariables(text, "MEGACLOUD"); console.log("\n vars: ", vars); @@ -78,7 +77,7 @@ class MegaCloud { return extractedData; } catch (error) { - throw http_errors_1.default.InternalServerError("Failed to decrypt resource"); + throw new Error("Failed to decrypt resource"); } } catch (err) { diff --git a/dist/extractors/megacloud.js.map b/dist/extractors/megacloud.js.map index 0628c15c6..50e2c55ed 100644 --- a/dist/extractors/megacloud.js.map +++ b/dist/extractors/megacloud.js.map @@ -1 +1 @@ -{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAC5B,8DAA0C;AAE1C,oDAAoD;AAEpD,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AAiCX,MAAM,SAAS;IAAf;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B,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAE5B,oDAAoD;AAEpD,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AAiCX,MAAM,SAAS;IAAf;QACU,eAAU,GAAG,WAAW,CAAC;IA8MnC,CAAC;IA5MC,KAAK,CAAC,OAAO,CAAC,QAAa;;QACzB,IAAI,CAAC;YACH,MAAM,aAAa,GAAkB;gBACnC,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE;oBACL,KAAK,EAAE,CAAC;oBACR,GAAG,EAAE,CAAC;iBACP;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,CAAC;oBACR,GAAG,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;aACZ,CAAC;YAEF,MAAM,OAAO,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,KAAK,CAAC,GAAG,CAAC,0CAAE,GAAG,EAAE,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACjE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CACxC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,EACvC;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,KAAK;oBACb,kBAAkB,EAAE,gBAAgB;oBACpC,YAAY,EACV,iHAAiH;oBACnH,OAAO,EAAE,QAAQ,CAAC,IAAI;iBACvB;aACF,CACF,CAAC;YACF,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;YACtD,CAAC;YAED,kDAAkD;YAElD,MAAM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Aa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,CACb,QAAe,EACf,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 7f1be27ce..17da0d9a7 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ }, "homepage": "https://github.com/consumet/consumet.ts#readme", "dependencies": { - "@types/http-errors": "^2.0.4", "ascii-url-encoder": "^1.2.0", "axios": "^0.27.2", "cheerio": "^1.0.0-rc.12", diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts index 470c886c0..cec69efdd 100644 --- a/src/extractors/megacloud.ts +++ b/src/extractors/megacloud.ts @@ -1,6 +1,5 @@ import axios from "axios"; import crypto from "crypto"; -import createHttpError from "http-errors"; // https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 @@ -72,7 +71,7 @@ class MegaCloud { } ); if (!srcsData) { - throw createHttpError.NotFound("Url may have an invalid video id"); + throw new Error("Url may have an invalid video id"); } // console.log(JSON.stringify(srcsData, null, 2)); @@ -101,7 +100,7 @@ class MegaCloud { text = data; if (!text) { - throw createHttpError.InternalServerError( + throw new Error( "Couldn't fetch script to decrypt resource" ); } @@ -127,7 +126,7 @@ class MegaCloud { return extractedData; } catch (error) { - throw createHttpError.InternalServerError("Failed to decrypt resource"); + throw new Error("Failed to decrypt resource"); } } catch (err) { // console.log(err); From 052b528fc952e035d674de6a8a4fa0988c534315 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 23:12:31 -0500 Subject: [PATCH 10/15] Fix(zoro): remove console.log --- dist/extractors/megacloud.d.ts | 36 +++++++------------------------- dist/extractors/megacloud.js | 36 ++++++++++++++++++++++---------- dist/extractors/megacloud.js.map | 2 +- src/extractors/megacloud.ts | 25 ++++++++++++++++++++-- 4 files changed, 56 insertions(+), 43 deletions(-) diff --git a/dist/extractors/megacloud.d.ts b/dist/extractors/megacloud.d.ts index fa5f45e35..440e02a0e 100644 --- a/dist/extractors/megacloud.d.ts +++ b/dist/extractors/megacloud.d.ts @@ -1,34 +1,12 @@ -type track = { - file: string; - kind: string; - label?: string; - default?: boolean; -}; -type intro_outro = { - start: number; - end: number; -}; -type unencryptedSrc = { - file: string; - type: string; -}; -type extractedSrc = { - sources: string | unencryptedSrc[]; - tracks: track[]; - encrypted: boolean; - intro: intro_outro; - outro: intro_outro; - server: number; -}; -interface ExtractedData extends Pick { - sources: { - url: string; - type: string; - }[]; -} +import { IVideo, ISubtitle, Intro } from '../models'; declare class MegaCloud { private serverName; - extract(videoUrl: URL): Promise; + extract(videoUrl: URL): Promise<{ + sources: IVideo[]; + subtitles: ISubtitle[]; + intro?: Intro | undefined; + outro?: Intro | undefined; + }>; extractVariables(text: string, sourceName: string): number[]; getSecret(encryptedString: string, values: number[]): { secret: string; diff --git a/dist/extractors/megacloud.js b/dist/extractors/megacloud.js index b2cb5f387..3e89d5a1f 100644 --- a/dist/extractors/megacloud.js +++ b/dist/extractors/megacloud.js @@ -17,17 +17,23 @@ class MegaCloud { async extract(videoUrl) { var _a, _b, _c; try { + /* + const extractedData: ExtractedData = { + tracks: [], + intro: { + start: 0, + end: 0, + }, + outro: { + start: 0, + end: 0, + }, + sources: [], + }; + */ const extractedData = { - tracks: [], - intro: { - start: 0, - end: 0, - }, - outro: { - start: 0, - end: 0, - }, sources: [], + subtitles: [], }; const videoId = (_c = (_b = (_a = videoUrl === null || videoUrl === void 0 ? void 0 : videoUrl.href) === null || _a === void 0 ? void 0 : _a.split("/")) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split("?")[0]; const { data: srcsData } = await axios_1.default.get(megacloud.sources.concat(videoId || ""), { @@ -46,7 +52,10 @@ class MegaCloud { if (srcsData.encrypted && Array.isArray(encryptedString)) { extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; - extractedData.tracks = srcsData.tracks; + extractedData.subtitles = srcsData.tracks.map((s) => ({ + url: s.file, + lang: s.type, + })); extractedData.sources = encryptedString.map((s) => ({ url: s.file, type: s.type, @@ -69,10 +78,15 @@ class MegaCloud { const sources = JSON.parse(decrypted); extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; - extractedData.tracks = srcsData.tracks; + //extractedData.tracks = srcsData.tracks; + extractedData.subtitles = srcsData.tracks.map((s) => ({ + url: s.file, + lang: s.type, + })); extractedData.sources = sources.map((s) => ({ url: s.file, type: s.type, + isM3U8: s.file.includes('.m3u8'), })); return extractedData; } diff --git a/dist/extractors/megacloud.js.map b/dist/extractors/megacloud.js.map index 50e2c55ed..0773c9d06 100644 --- a/dist/extractors/megacloud.js.map +++ b/dist/extractors/megacloud.js.map @@ -1 +1 @@ -{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAE5B,oDAAoD;AAEpD,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AAiCX,MAAM,SAAS;IAAf;QACU,eAAU,GAAG,WAAW,CAAC;IA8MnC,CAAC;IA5MC,KAAK,CAAC,OAAO,CAAC,QAAa;;QACzB,IAAI,CAAC;YACH,MAAM,aAAa,GAAkB;gBACnC,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE;oBACL,KAAK,EAAE,CAAC;oBACR,GAAG,EAAE,CAAC;iBACP;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,CAAC;oBACR,GAAG,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;aACZ,CAAC;YAEF,MAAM,OAAO,GAAG,MAAA,MAAA,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,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts index cec69efdd..694d26045 100644 --- a/src/extractors/megacloud.ts +++ b/src/extractors/megacloud.ts @@ -1,5 +1,6 @@ import axios from "axios"; import crypto from "crypto"; +import { IVideo, ISubtitle, Intro } from '../models'; // https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 @@ -44,6 +45,7 @@ class MegaCloud { async extract(videoUrl: URL) { try { + /* const extractedData: ExtractedData = { tracks: [], intro: { @@ -56,6 +58,17 @@ class MegaCloud { }, sources: [], }; + */ + + const extractedData: { + sources: IVideo[]; + subtitles: ISubtitle[]; + intro?: Intro; + outro?: Intro + } = { + sources: [], + subtitles: [], + }; const videoId = videoUrl?.href?.split("/")?.pop()?.split("?")[0]; const { data: srcsData } = await axios.get( @@ -80,7 +93,10 @@ class MegaCloud { if (srcsData.encrypted && Array.isArray(encryptedString)) { extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; - extractedData.tracks = srcsData.tracks; + extractedData.subtitles = srcsData.tracks.map((s: any) => ({ + url: s.file, + lang: s.type, + })); extractedData.sources = encryptedString.map((s) => ({ url: s.file, type: s.type, @@ -118,10 +134,15 @@ class MegaCloud { const sources = JSON.parse(decrypted); extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; - extractedData.tracks = srcsData.tracks; + //extractedData.tracks = srcsData.tracks; + extractedData.subtitles = srcsData.tracks.map((s: any) => ({ + url: s.file, + lang: s.type, + })); extractedData.sources = sources.map((s: any) => ({ url: s.file, type: s.type, + isM3U8: s.file.includes('.m3u8'), })); return extractedData; From 7c22359b8398b7a390c6b5dad8320c11a7eaaf86 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 23:22:31 -0500 Subject: [PATCH 11/15] Fix(zoro): remove console.log and clean code --- dist/extractors/megacloud.d.ts | 1 - dist/extractors/megacloud.js | 31 ++--------------------- dist/extractors/megacloud.js.map | 2 +- dist/providers/anime/zoro.js | 8 ------ dist/providers/anime/zoro.js.map | 2 +- src/extractors/megacloud.ts | 43 +++----------------------------- src/providers/anime/zoro.ts | 15 +---------- 7 files changed, 8 insertions(+), 94 deletions(-) diff --git a/dist/extractors/megacloud.d.ts b/dist/extractors/megacloud.d.ts index 440e02a0e..e918b0c04 100644 --- a/dist/extractors/megacloud.d.ts +++ b/dist/extractors/megacloud.d.ts @@ -1,6 +1,5 @@ import { IVideo, ISubtitle, Intro } from '../models'; declare class MegaCloud { - private serverName; extract(videoUrl: URL): Promise<{ sources: IVideo[]; subtitles: ISubtitle[]; diff --git a/dist/extractors/megacloud.js b/dist/extractors/megacloud.js index 3e89d5a1f..16463efad 100644 --- a/dist/extractors/megacloud.js +++ b/dist/extractors/megacloud.js @@ -5,32 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const axios_1 = __importDefault(require("axios")); const crypto_1 = __importDefault(require("crypto")); -// https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 const megacloud = { script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", sources: "https://megacloud.tv/embed-2/ajax/e-1/getSources?id=", }; class MegaCloud { - constructor() { - this.serverName = "megacloud"; - } async extract(videoUrl) { var _a, _b, _c; try { - /* - const extractedData: ExtractedData = { - tracks: [], - intro: { - start: 0, - end: 0, - }, - outro: { - start: 0, - end: 0, - }, - sources: [], - }; - */ const extractedData = { sources: [], subtitles: [], @@ -47,14 +29,13 @@ class MegaCloud { if (!srcsData) { throw new Error("Url may have an invalid video id"); } - // console.log(JSON.stringify(srcsData, null, 2)); const encryptedString = srcsData.sources; if (srcsData.encrypted && Array.isArray(encryptedString)) { extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; extractedData.subtitles = srcsData.tracks.map((s) => ({ url: s.file, - lang: s.type, + lang: s.label, })); extractedData.sources = encryptedString.map((s) => ({ url: s.file, @@ -62,26 +43,22 @@ class MegaCloud { })); return extractedData; } - console.log("\n encryptedString: ", encryptedString); let text; const { data } = await axios_1.default.get(megacloud.script.concat(Date.now().toString())); - console.log("\n data: ", megacloud.script.concat(Date.now().toString())); text = data; if (!text) { throw new Error("Couldn't fetch script to decrypt resource"); } const vars = this.extractVariables(text, "MEGACLOUD"); - console.log("\n vars: ", vars); const { secret, encryptedSource } = this.getSecret(encryptedString, vars); const decrypted = this.decrypt(encryptedSource, secret); try { const sources = JSON.parse(decrypted); extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; - //extractedData.tracks = srcsData.tracks; extractedData.subtitles = srcsData.tracks.map((s) => ({ url: s.file, - lang: s.type, + lang: s.label, })); extractedData.sources = sources.map((s) => ({ url: s.file, @@ -95,13 +72,11 @@ class MegaCloud { } } catch (err) { - // console.log(err); throw err; } } extractVariables(text, sourceName) { var _a, _b, _c, _d; - // extract needed variables let allvars; if (sourceName !== "MEGACLOUD") { allvars = @@ -113,7 +88,6 @@ class MegaCloud { (_d = (_c = text .match(/const \w{1,2}=new URLSearchParams.+?;(?=function)/gm)) === null || _c === void 0 ? void 0 : _c.at(-1)) !== null && _d !== void 0 ? _d : ""; } - // and convert their values into an array of numbers const vars = allvars .slice(0, -1) .split("=") @@ -171,7 +145,6 @@ class MegaCloud { contents = encrypted; } else { - // copied from 'https://github.com/brix/crypto-js/issues/468' const cypher = Buffer.from(encrypted, "base64"); const salt = cypher.subarray(8, 16); const password = Buffer.concat([ diff --git a/dist/extractors/megacloud.js.map b/dist/extractors/megacloud.js.map index 0773c9d06..08c643759 100644 --- a/dist/extractors/megacloud.js.map +++ b/dist/extractors/megacloud.js.map @@ -1 +1 @@ -{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;A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YAClB,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC;QAED,MAAM,QAAQ,GAAG,gBAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,CACb,QAAe,EACf,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAG5B,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AA4BX,MAAM,SAAS;IACb,KAAK,CAAC,OAAO,CAAC,QAAa;;QACzB,IAAI,CAAC;YACH,MAAM,aAAa,GAKf;gBACF,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,EAAE;aACd,CAAC;YAEF,MAAM,OAAO,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,KAAK,CAAC,GAAG,CAAC,0CAAE,GAAG,EAAE,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACjE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CACxC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,EACvC;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,KAAK;oBACb,kBAAkB,EAAE,gBAAgB;oBACpC,YAAY,EACV,iHAAiH;oBACnH,OAAO,E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C,CAAC,CAAC;YAClD,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YAClB,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC;QAED,MAAM,QAAQ,GAAG,gBAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,CACb,QAAe,EACf,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/providers/anime/zoro.js b/dist/providers/anime/zoro.js index 30acec74f..5a5d565f1 100644 --- a/dist/providers/anime/zoro.js +++ b/dist/providers/anime/zoro.js @@ -81,7 +81,6 @@ class Zoro extends models_1.AnimeParser { */ this.fetchEpisodeSources = async (episodeId, server = models_1.StreamingServers.VidCloud) => { var _a; - console.log("3. LINK: ", episodeId); if (episodeId.startsWith('http')) { const serverUrl = new URL(episodeId); switch (server) { @@ -117,7 +116,6 @@ class Zoro extends models_1.AnimeParser { .replace(/\$auto|\$sub|\$dub/gi, '')}`; try { const { data } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`); - console.log("1. URL: " + `${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`); const $ = (0, cheerio_1.load)(data.html); /** * vidtreaming -> 4 @@ -127,30 +125,25 @@ class Zoro extends models_1.AnimeParser { */ let serverId = ''; try { - console.log("Server: " + server); switch (server) { case models_1.StreamingServers.VidCloud: - console.log("- Server: " + "VidCloud"); serverId = this.retrieveServerId($, 1, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('RapidCloud not found'); break; case models_1.StreamingServers.VidStreaming: - console.log("- Server: " + "VidStreaming"); serverId = this.retrieveServerId($, 4, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('vidtreaming not found'); break; case models_1.StreamingServers.StreamSB: - console.log("- Server: " + "StreamSB"); serverId = this.retrieveServerId($, 5, subOrDub); if (!serverId) throw new Error('StreamSB not found'); break; case models_1.StreamingServers.StreamTape: - console.log("- Server: " + "StreamTape"); serverId = this.retrieveServerId($, 3, subOrDub); if (!serverId) throw new Error('StreamTape not found'); @@ -161,7 +154,6 @@ class Zoro extends models_1.AnimeParser { throw new Error("Couldn't find server. Try another server"); } const { data: { link }, } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); - console.log("2. LINK: " + `${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); return await this.fetchEpisodeSources(link, server); } catch (err) { diff --git a/dist/providers/anime/zoro.js.map b/dist/providers/anime/zoro.js.map index da622a438..2c0f9c562 100644 --- a/dist/providers/anime/zoro.js.map +++ b/dist/providers/anime/zoro.js.map @@ -1 +1 @@ -{"version":3,"file":"zoro.js","sourceRoot":"","sources":["../../../src/providers/anime/zoro.ts"],"names":[],"mappings":";;AACA,qCAA+B;AAE/B,yCAasB;AAEtB,uCAA0E;AAC1E,uCAAyC;AAEzC,MAAM,IAAK,SAAQ,oBAAW;IAA9B;;QACoB,SAAI,GAAG,MAAM,CAAC;QACb,YAAO,GAAG,oBAAoB,CAAC;QAC/B,SAAI,GACrB,0HAA0H,CAAC;QAC1G,cAAS,GAAG,YAAY,CAAC;QA6E5C;;WAEG;QACM,mBAAc,GAAG,KAAK,EAAE,EAAU,EAAuB,EAAE;YAClE,MAAM,IAAI,GAAe;gBACvB,EAAE,EAAE,EAAE;gBACN,KAAK,EAAE,EAAE;aACV,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,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,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,wBAAwB,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;IACD;;OAEG;IACH,gBAAgB,CAAC,OAAe,CAAC;QAC/B,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,sBAAsB,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC;CA8QF;AAED,iBAAiB;AACjB,6BAA6B;AAC7B,+DAA+D;AAC/D,iEAAiE;AACjE,0EAA0E;AAC1E,0BAA0B;AAC1B,QAAQ;AAER,kBAAe,IAAI,CAAC"} \ No newline at end of file +{"version":3,"file":"zoro.js","sourceRoot":"","sources":["../../../src/providers/anime/zoro.ts"],"names":[],"mappings":";;AACA,qCAA+B;AAE/B,yCAasB;AAEtB,uCAA0E;AAC1E,uCAAyC;AAEzC,MAAM,IAAK,SAAQ,oBAAW;IAA9B;;QACoB,SAAI,GAAG,MAAM,CAAC;QACb,YAAO,GAAG,oBAAoB,CAAC;QAC/B,SAAI,GACrB,0HAA0H,CAAC;QAC1G,cAAS,GAAG,YAAY,CAAC;QA6E5C;;WAEG;QACM,mBAAc,GAAG,KAAK,EAAE,EAAU,EAAuB,EAAE;YAClE,MAAM,IAAI,GAAe;gBACvB,EAAE,EAAE,EAAE;gBACN,KAAK,EAAE,EAAE;aACV,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,UAAU,EAAE,EAAE,CAAC,CAAC;gBACtE,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;gBAErB,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAA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AI,EAAE,CAAC,CAAC;IACnE,CAAC;IACD;;OAEG;IACH,oBAAoB,CAAC,OAAe,CAAC;QACnC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,0BAA0B,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD;;OAEG;IACH,kBAAkB,CAAC,OAAe,CAAC;QACjC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,wBAAwB,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;IACD;;OAEG;IACH,gBAAgB,CAAC,OAAe,CAAC;QAC/B,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,sBAAsB,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC;CAiQF;AAED,iBAAiB;AACjB,6BAA6B;AAC7B,+DAA+D;AAC/D,iEAAiE;AACjE,0EAA0E;AAC1E,0BAA0B;AAC1B,QAAQ;AAER,kBAAe,IAAI,CAAC"} \ No newline at end of file diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts index 694d26045..03d0fe0a0 100644 --- a/src/extractors/megacloud.ts +++ b/src/extractors/megacloud.ts @@ -2,8 +2,6 @@ import axios from "axios"; import crypto from "crypto"; import { IVideo, ISubtitle, Intro } from '../models'; -// https://megacloud.tv/embed-2/e-1/dBqCr5BcOhnD?k=1 - const megacloud = { script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", sources: "https://megacloud.tv/embed-2/ajax/e-1/getSources?id=", @@ -35,31 +33,9 @@ type extractedSrc = { server: number; }; -interface ExtractedData - extends Pick { - sources: { url: string; type: string }[]; -} - class MegaCloud { - private serverName = "megacloud"; - async extract(videoUrl: URL) { - try { - /* - const extractedData: ExtractedData = { - tracks: [], - intro: { - start: 0, - end: 0, - }, - outro: { - start: 0, - end: 0, - }, - sources: [], - }; - */ - + try { const extractedData: { sources: IVideo[]; subtitles: ISubtitle[]; @@ -87,15 +63,13 @@ class MegaCloud { throw new Error("Url may have an invalid video id"); } - // console.log(JSON.stringify(srcsData, null, 2)); - const encryptedString = srcsData.sources; if (srcsData.encrypted && Array.isArray(encryptedString)) { extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; extractedData.subtitles = srcsData.tracks.map((s: any) => ({ url: s.file, - lang: s.type, + lang: s.label, })); extractedData.sources = encryptedString.map((s) => ({ url: s.file, @@ -105,15 +79,11 @@ class MegaCloud { return extractedData; } - console.log("\n encryptedString: ", encryptedString); - let text: string; const { data } = await axios.get( megacloud.script.concat(Date.now().toString()) ); - console.log("\n data: ", megacloud.script.concat(Date.now().toString())); - text = data; if (!text) { throw new Error( @@ -123,8 +93,6 @@ class MegaCloud { const vars = this.extractVariables(text, "MEGACLOUD"); - console.log("\n vars: ", vars); - const { secret, encryptedSource } = this.getSecret( encryptedString as string, vars @@ -134,10 +102,9 @@ class MegaCloud { const sources = JSON.parse(decrypted); extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; - //extractedData.tracks = srcsData.tracks; extractedData.subtitles = srcsData.tracks.map((s: any) => ({ url: s.file, - lang: s.type, + lang: s.label, })); extractedData.sources = sources.map((s: any) => ({ url: s.file, @@ -150,13 +117,11 @@ class MegaCloud { throw new Error("Failed to decrypt resource"); } } catch (err) { - // console.log(err); throw err; } } extractVariables(text: string, sourceName: string) { - // extract needed variables let allvars; if (sourceName !== "MEGACLOUD") { allvars = @@ -171,7 +136,6 @@ class MegaCloud { .match(/const \w{1,2}=new URLSearchParams.+?;(?=function)/gm) ?.at(-1) ?? ""; } - // and convert their values into an array of numbers const vars = allvars .slice(0, -1) .split("=") @@ -239,7 +203,6 @@ class MegaCloud { iv = maybe_iv; contents = encrypted; } else { - // copied from 'https://github.com/brix/crypto-js/issues/468' const cypher = Buffer.from(encrypted, "base64"); const salt = cypher.subarray(8, 16); const password = Buffer.concat([ diff --git a/src/providers/anime/zoro.ts b/src/providers/anime/zoro.ts index 5814d91bd..abb4ddc1d 100644 --- a/src/providers/anime/zoro.ts +++ b/src/providers/anime/zoro.ts @@ -185,16 +185,13 @@ class Zoro extends AnimeParser { override fetchEpisodeSources = async ( episodeId: string, server: StreamingServers = StreamingServers.VidCloud - ): Promise => { - console.log("3. LINK: ", episodeId); - + ): Promise => { if (episodeId.startsWith('http')) { const serverUrl = new URL(episodeId); switch (server) { case StreamingServers.VidStreaming: case StreamingServers.VidCloud: return { - //...(await new RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), ...(await new MegaCloud().extract(serverUrl)), }; case StreamingServers.StreamSB: @@ -215,7 +212,6 @@ class Zoro extends AnimeParser { case StreamingServers.VidCloud: return { headers: { Referer: serverUrl.href }, - //...(await new RapidCloud(this.proxyConfig, this.adapter).extract(serverUrl)), ...(await new MegaCloud().extract(serverUrl)), }; } @@ -236,8 +232,6 @@ class Zoro extends AnimeParser { `${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}` ); - console.log("1. URL: " + `${this.baseUrl}/ajax/v2/episode/servers?episodeId=${episodeId.split('?ep=')[1]}`); - const $ = load(data.html); /** @@ -248,30 +242,25 @@ class Zoro extends AnimeParser { */ let serverId = ''; try { - console.log("Server: " + server); switch (server) { case StreamingServers.VidCloud: - console.log("- Server: " + "VidCloud"); serverId = this.retrieveServerId($, 1, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('RapidCloud not found'); break; case StreamingServers.VidStreaming: - console.log("- Server: " + "VidStreaming"); serverId = this.retrieveServerId($, 4, subOrDub); // zoro's vidcloud server is rapidcloud if (!serverId) throw new Error('vidtreaming not found'); break; case StreamingServers.StreamSB: - console.log("- Server: " + "StreamSB"); serverId = this.retrieveServerId($, 5, subOrDub); if (!serverId) throw new Error('StreamSB not found'); break; case StreamingServers.StreamTape: - console.log("- Server: " + "StreamTape"); serverId = this.retrieveServerId($, 3, subOrDub); if (!serverId) throw new Error('StreamTape not found'); @@ -285,8 +274,6 @@ class Zoro extends AnimeParser { data: { link }, } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); - console.log("2. LINK: " + `${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); - return await this.fetchEpisodeSources(link, server); } catch (err) { throw err; From 3c5ad644d01fc0751fac72282507cb13aa4e6e1e Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 23:26:22 -0500 Subject: [PATCH 12/15] Fix(zoro): update format --- dist/extractors/megacloud.js | 5 +++-- dist/extractors/megacloud.js.map | 2 +- src/extractors/megacloud.ts | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/extractors/megacloud.js b/dist/extractors/megacloud.js index 16463efad..77c36f936 100644 --- a/dist/extractors/megacloud.js +++ b/dist/extractors/megacloud.js @@ -35,11 +35,12 @@ class MegaCloud { extractedData.outro = srcsData.outro; extractedData.subtitles = srcsData.tracks.map((s) => ({ url: s.file, - lang: s.label, + lang: s.label ? s.label : 'Thumbnails', })); extractedData.sources = encryptedString.map((s) => ({ url: s.file, type: s.type, + isM3U8: s.file.includes('.m3u8'), })); return extractedData; } @@ -58,7 +59,7 @@ class MegaCloud { extractedData.outro = srcsData.outro; extractedData.subtitles = srcsData.tracks.map((s) => ({ url: s.file, - lang: s.label, + lang: s.label ? s.label : 'Thumbnails', })); extractedData.sources = sources.map((s) => ({ url: s.file, diff --git a/dist/extractors/megacloud.js.map b/dist/extractors/megacloud.js.map index 08c643759..dc5cf80cc 100644 --- a/dist/extractors/megacloud.js.map +++ b/dist/extractors/megacloud.js.map @@ -1 +1 @@ -{"version":3,"file":"megacloud.js","sourceRoot":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,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAG5B,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AA4BX,MAAM,SAAS;IACb,KAAK,CAAC,OAAO,CAAC,QAAa;;QACzB,IAAI,CAAC;YACH,MAAM,aAAa,GAKf;gBACF,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,EAAE;aACd,CAAC;YAEF,MAAM,OAAO,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,KAAK,CAAC,GAAG,CAAC,0CAAE,GAAG,EAAE,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACjE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CACxC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,EACvC;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,KAAK;oBACb,kBAAkB,EAAE,gBAAgB;oBACpC,YAAY,EACV,iHAAiH;oBACnH,OAAO,EAAE,QAAQ,CAAC,IAAI;iBACvB;aACF,CACF,CAAC;YACF,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;YACtD,CAAC;YAED,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC;YACzC,IAAI,QAAQ,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACzD,aAAa,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;gBACrC,aAAa,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;gBACrC,aA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AE,EAAE,CAAC,CAAC;QACjE,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,CACb,QAAe,EACf,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts index 03d0fe0a0..c41aad091 100644 --- a/src/extractors/megacloud.ts +++ b/src/extractors/megacloud.ts @@ -69,11 +69,12 @@ class MegaCloud { extractedData.outro = srcsData.outro; extractedData.subtitles = srcsData.tracks.map((s: any) => ({ url: s.file, - lang: s.label, + lang: s.label ? s.label : 'Thumbnails', })); extractedData.sources = encryptedString.map((s) => ({ url: s.file, type: s.type, + isM3U8: s.file.includes('.m3u8'), })); return extractedData; @@ -104,7 +105,7 @@ class MegaCloud { extractedData.outro = srcsData.outro; extractedData.subtitles = srcsData.tracks.map((s: any) => ({ url: s.file, - lang: s.label, + lang: s.label ? s.label : 'Thumbnails', })); extractedData.sources = sources.map((s: any) => ({ url: s.file, From ccdf692e489016ca519920b112c822f4b3db177e Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 23:34:31 -0500 Subject: [PATCH 13/15] Fix(zoro): remove unused imports --- dist/providers/anime/zoro.js.map | 2 +- src/providers/anime/zoro.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dist/providers/anime/zoro.js.map b/dist/providers/anime/zoro.js.map index 2c0f9c562..1f421b6d4 100644 --- a/dist/providers/anime/zoro.js.map +++ b/dist/providers/anime/zoro.js.map @@ -1 +1 @@ -{"version":3,"file":"zoro.js","sourceRoot":"","sources":["../../../src/providers/anime/zoro.ts"],"names":[],"mappings":";;AACA,qCAA+B;AAE/B,yCAasB;AAEtB,uCAA0E;AAC1E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GAAG,IAAI,CAAC,OAAO,0BAA0B,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD;;OAEG;IACH,kBAAkB,CAAC,OAAe,CAAC;QACjC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,wBAAwB,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;IACD;;OAEG;IACH,gBAAgB,CAAC,OAAe,CAAC;QAC/B,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,sBAAsB,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC;CAiQF;AAED,iBAAiB;AACjB,6BAA6B;AAC7B,+DAA+D;AAC/D,iEAAiE;AACjE,0EAA0E;AAC1E,0BAA0B;AAC1B,QAAQ;AAER,kBAAe,IAAI,CAAC"} \ No newline at end of file diff --git a/src/providers/anime/zoro.ts b/src/providers/anime/zoro.ts index abb4ddc1d..95db9eaf2 100644 --- a/src/providers/anime/zoro.ts +++ b/src/providers/anime/zoro.ts @@ -5,15 +5,12 @@ import { AnimeParser, ISearch, IAnimeInfo, - MediaStatus, IAnimeResult, ISource, - IAnimeEpisode, IEpisodeServer, StreamingServers, MediaFormat, SubOrSub, - ProxyConfig, } from '../../models'; import { StreamSB, RapidCloud, MegaCloud, StreamTape } from '../../utils'; From 486feea3584e41f0bac6b79c3f4c24da0353a833 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Sun, 3 Mar 2024 18:24:46 -0500 Subject: [PATCH 14/15] Fix(zoro): Requested changes were implemented. --- dist/extractors/megacloud.d.ts | 6 ++- dist/extractors/megacloud.js | 41 +++++++++++--------- dist/extractors/megacloud.js.map | 2 +- src/extractors/megacloud.ts | 66 +++++++++++++++----------------- 4 files changed, 57 insertions(+), 58 deletions(-) diff --git a/dist/extractors/megacloud.d.ts b/dist/extractors/megacloud.d.ts index e918b0c04..d82ae5e2d 100644 --- a/dist/extractors/megacloud.d.ts +++ b/dist/extractors/megacloud.d.ts @@ -1,5 +1,7 @@ -import { IVideo, ISubtitle, Intro } from '../models'; -declare class MegaCloud { +import { IVideo, ISubtitle, Intro, VideoExtractor } from '../models'; +declare class MegaCloud extends VideoExtractor { + protected serverName: string; + protected sources: IVideo[]; extract(videoUrl: URL): Promise<{ sources: IVideo[]; subtitles: ISubtitle[]; diff --git a/dist/extractors/megacloud.js b/dist/extractors/megacloud.js index 77c36f936..69bd7c960 100644 --- a/dist/extractors/megacloud.js +++ b/dist/extractors/megacloud.js @@ -3,22 +3,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const axios_1 = __importDefault(require("axios")); const crypto_1 = __importDefault(require("crypto")); +const models_1 = require("../models"); const megacloud = { script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", sources: "https://megacloud.tv/embed-2/ajax/e-1/getSources?id=", }; -class MegaCloud { +class MegaCloud extends models_1.VideoExtractor { + constructor() { + super(...arguments); + this.serverName = 'MegaCloud'; + this.sources = []; + } async extract(videoUrl) { var _a, _b, _c; try { - const extractedData = { + const result = { sources: [], subtitles: [], }; const videoId = (_c = (_b = (_a = videoUrl === null || videoUrl === void 0 ? void 0 : videoUrl.href) === null || _a === void 0 ? void 0 : _a.split("/")) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split("?")[0]; - const { data: srcsData } = await axios_1.default.get(megacloud.sources.concat(videoId || ""), { + const { data: srcsData } = await this.client.get(megacloud.sources.concat(videoId || ""), { headers: { Accept: "*/*", "X-Requested-With": "XMLHttpRequest", @@ -31,42 +36,40 @@ class MegaCloud { } const encryptedString = srcsData.sources; if (srcsData.encrypted && Array.isArray(encryptedString)) { - extractedData.intro = srcsData.intro; - extractedData.outro = srcsData.outro; - extractedData.subtitles = srcsData.tracks.map((s) => ({ + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s) => ({ url: s.file, lang: s.label ? s.label : 'Thumbnails', })); - extractedData.sources = encryptedString.map((s) => ({ + result.sources = encryptedString.map((s) => ({ url: s.file, type: s.type, isM3U8: s.file.includes('.m3u8'), })); - return extractedData; + return result; } - let text; - const { data } = await axios_1.default.get(megacloud.script.concat(Date.now().toString())); - text = data; - if (!text) { + const { data } = await this.client.get(megacloud.script.concat(Date.now().toString())); + const text = data; + if (!text) throw new Error("Couldn't fetch script to decrypt resource"); - } const vars = this.extractVariables(text, "MEGACLOUD"); const { secret, encryptedSource } = this.getSecret(encryptedString, vars); const decrypted = this.decrypt(encryptedSource, secret); try { const sources = JSON.parse(decrypted); - extractedData.intro = srcsData.intro; - extractedData.outro = srcsData.outro; - extractedData.subtitles = srcsData.tracks.map((s) => ({ + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s) => ({ url: s.file, lang: s.label ? s.label : 'Thumbnails', })); - extractedData.sources = sources.map((s) => ({ + result.sources = sources.map((s) => ({ url: s.file, type: s.type, isM3U8: s.file.includes('.m3u8'), })); - return extractedData; + return result; } catch (error) { throw new Error("Failed to decrypt resource"); diff --git a/dist/extractors/megacloud.js.map b/dist/extractors/megacloud.js.map index dc5cf80cc..9017fcb53 100644 --- a/dist/extractors/megacloud.js.map +++ b/dist/extractors/megacloud.js.map @@ -1 +1 @@ -{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["../../src/extractors/megacloud.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,oDAA4B;AAG5B,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,2DAA2D;IACnE,OAAO,EAAE,sDAAsD;CACvD,CAAC;AA4BX,MAAM,SAAS;IACb,KAAK,CAAC,OAAO,CAAC,QAAa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,QAAQ,GAAG,gBAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,CACb,QAAe,EACf,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACnD,MAAM,CACP,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts index c41aad091..0132738a3 100644 --- a/src/extractors/megacloud.ts +++ b/src/extractors/megacloud.ts @@ -1,42 +1,40 @@ -import axios from "axios"; import crypto from "crypto"; -import { IVideo, ISubtitle, Intro } from '../models'; +import { IVideo, ISubtitle, Intro, VideoExtractor } from '../models'; const megacloud = { script: "https://megacloud.tv/js/player/a/prod/e1-player.min.js?v=", sources: "https://megacloud.tv/embed-2/ajax/e-1/getSources?id=", } as const; -type track = { +type tracks = { file: string; kind: string; label?: string; default?: boolean; }; -type intro_outro = { - start: number; - end: number; -}; - -type unencryptedSrc = { +type unencrypSources = { file: string; type: string; }; -type extractedSrc = { - sources: string | unencryptedSrc[]; - tracks: track[]; +type apiFormat = { + sources: string | unencrypSources[]; + tracks: tracks[]; encrypted: boolean; - intro: intro_outro; - outro: intro_outro; + intro: Intro; + outro: Intro; server: number; }; -class MegaCloud { - async extract(videoUrl: URL) { +class MegaCloud extends VideoExtractor { + + protected override serverName = 'MegaCloud'; + protected override sources: IVideo[] = []; + + async extract(videoUrl: URL) { try { - const extractedData: { + const result: { sources: IVideo[]; subtitles: ISubtitle[]; intro?: Intro; @@ -47,7 +45,7 @@ class MegaCloud { }; const videoId = videoUrl?.href?.split("/")?.pop()?.split("?")[0]; - const { data: srcsData } = await axios.get( + const { data: srcsData } = await this.client.get( megacloud.sources.concat(videoId || ""), { headers: { @@ -65,32 +63,28 @@ class MegaCloud { const encryptedString = srcsData.sources; if (srcsData.encrypted && Array.isArray(encryptedString)) { - extractedData.intro = srcsData.intro; - extractedData.outro = srcsData.outro; - extractedData.subtitles = srcsData.tracks.map((s: any) => ({ + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s: any) => ({ url: s.file, lang: s.label ? s.label : 'Thumbnails', })); - extractedData.sources = encryptedString.map((s) => ({ + result.sources = encryptedString.map((s) => ({ url: s.file, type: s.type, isM3U8: s.file.includes('.m3u8'), })); - return extractedData; + return result; } - let text: string; - const { data } = await axios.get( + const { data } = await this.client.get( megacloud.script.concat(Date.now().toString()) ); - text = data; - if (!text) { - throw new Error( - "Couldn't fetch script to decrypt resource" - ); - } + const text = data; + if (!text) + throw new Error("Couldn't fetch script to decrypt resource"); const vars = this.extractVariables(text, "MEGACLOUD"); @@ -101,19 +95,19 @@ class MegaCloud { const decrypted = this.decrypt(encryptedSource, secret); try { const sources = JSON.parse(decrypted); - extractedData.intro = srcsData.intro; - extractedData.outro = srcsData.outro; - extractedData.subtitles = srcsData.tracks.map((s: any) => ({ + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s: any) => ({ url: s.file, lang: s.label ? s.label : 'Thumbnails', })); - extractedData.sources = sources.map((s: any) => ({ + result.sources = sources.map((s: any) => ({ url: s.file, type: s.type, isM3U8: s.file.includes('.m3u8'), })); - return extractedData; + return result; } catch (error) { throw new Error("Failed to decrypt resource"); } From 08a402ba591f916e52854e4264a628ecaa70d815 Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Mon, 4 Mar 2024 00:43:13 -0500 Subject: [PATCH 15/15] Updated gogoanime ajax url --- dist/providers/anime/gogoanime.js | 2 +- dist/providers/anime/gogoanime.js.map | 2 +- src/providers/anime/gogoanime.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/providers/anime/gogoanime.js b/dist/providers/anime/gogoanime.js index 4c2d66f8e..a706b083c 100644 --- a/dist/providers/anime/gogoanime.js +++ b/dist/providers/anime/gogoanime.js @@ -11,7 +11,7 @@ class Gogoanime extends models_1.AnimeParser { this.baseUrl = 'https://gogoanime3.co'; this.logo = 'https://play-lh.googleusercontent.com/MaGEiAEhNHAJXcXKzqTNgxqRmhuKB1rCUgb15UrN_mWUNRnLpO5T1qja64oRasO7mn0'; this.classPath = 'ANIME.Gogoanime'; - this.ajaxUrl = 'https://ajax.gogo-load.com/ajax'; + this.ajaxUrl = 'https://ajax.gogocdn.net/ajax'; /** * * @param query search query string diff --git a/dist/providers/anime/gogoanime.js.map b/dist/providers/anime/gogoanime.js.map index 318a1ab5e..2c9a98937 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,iDAAqD;AAErD,MAAM,SAAU,SAAQ,oBAAW;IAAnC;;QACoB,SAAI,GAAG,WAAW,CAAC;QAClB,YAAO,GAAG,uBAAuB,CAAC;QAClC,SAAI,GACrB,2GAA2G,CAAC;QAC3F,cAAS,GAAG,iBAAiB,CAAC;QAChC,YAAO,GAAG,iCAAiC,CAAC;QAE7D;;;;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,MAAM,CA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,KAAK,CAAC;wBACrC,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;wBACvC,MAAM;wBACN,WAAW;qBACZ,CACF,CAAC;gBACJ,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;IACJ,CAAC;CAAA;AAED,iBAAiB;AACjB,kCAAkC;AAClC,+EAA+E;AAC/E,yBAAyB;AACzB,QAAQ;AAER,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/src/providers/anime/gogoanime.ts b/src/providers/anime/gogoanime.ts index 4e7aa5672..e514b2203 100644 --- a/src/providers/anime/gogoanime.ts +++ b/src/providers/anime/gogoanime.ts @@ -24,7 +24,7 @@ class Gogoanime extends AnimeParser { protected override logo = 'https://play-lh.googleusercontent.com/MaGEiAEhNHAJXcXKzqTNgxqRmhuKB1rCUgb15UrN_mWUNRnLpO5T1qja64oRasO7mn0'; protected override classPath = 'ANIME.Gogoanime'; - private readonly ajaxUrl = 'https://ajax.gogo-load.com/ajax'; + private readonly ajaxUrl = 'https://ajax.gogocdn.net/ajax'; /** *