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,8DA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B;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..d82ae5e2d --- /dev/null +++ b/dist/extractors/megacloud.d.ts @@ -0,0 +1,18 @@ +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[]; + intro?: Intro | undefined; + outro?: Intro | undefined; + }>; + 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..69bd7c960 --- /dev/null +++ b/dist/extractors/megacloud.js @@ -0,0 +1,174 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +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 extends models_1.VideoExtractor { + constructor() { + super(...arguments); + this.serverName = 'MegaCloud'; + this.sources = []; + } + async extract(videoUrl) { + var _a, _b, _c; + try { + 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 this.client.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 new Error("Url may have an invalid video id"); + } + const encryptedString = srcsData.sources; + if (srcsData.encrypted && Array.isArray(encryptedString)) { + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s) => ({ + url: s.file, + lang: s.label ? s.label : 'Thumbnails', + })); + result.sources = encryptedString.map((s) => ({ + url: s.file, + type: s.type, + isM3U8: s.file.includes('.m3u8'), + })); + return result; + } + 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); + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s) => ({ + url: s.file, + lang: s.label ? s.label : 'Thumbnails', + })); + result.sources = sources.map((s) => ({ + url: s.file, + type: s.type, + isM3U8: s.file.includes('.m3u8'), + })); + return result; + } + catch (error) { + throw new Error("Failed to decrypt resource"); + } + } + catch (err) { + throw err; + } + } + extractVariables(text, sourceName) { + var _a, _b, _c, _d; + 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 : ""; + } + 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 { + 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..9017fcb53 --- /dev/null +++ b/dist/extractors/megacloud.js.map @@ -0,0 +1 @@ +{"version":3,"file":"megacloud.js","sourceRoot":"","sources":["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AAa,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/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,GAA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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 +{"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,+BAA+B,CAAC;QAE3D;;;;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,CAAC,GAAG,IAAA,cAAI,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEzB,YAAY,CAAC,WAAW;oBACtB,CAAC,CAAC,0DAA0D,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;gBAElF,CAAC,CAAC,6BAA6B,CAA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;oBAChD,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC/B,SAAS,CAAC,IAAI,CACZ;wBACE,EAAE,EAAE,MAAA,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,0CAAE,OAAO,CAAC,YAAY,EAAE,EAAE,CAAE;wBAC9C,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE;wBACf,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,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/dist/providers/anime/zoro.js b/dist/providers/anime/zoro.js index a4b50c383..5a5d565f1 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'; /** @@ -86,7 +86,7 @@ class Zoro extends models_1.AnimeParser { 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 +103,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$')) @@ -161,7 +161,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..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,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;QAC1G,cAAS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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/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,OAsCA;AACZ,0FAtCA,sBAAS,OAsCA;AAkCT,wFAvEA,oBAAO,OAuEA;AArET,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;AAYL,wFApDA,eAAO,OAoDA;AACP,qFApDA,YAAI,OAoDA;AACJ,uFApDA,cAAM,OAoDA;AACN,gGApDA,uBAAe,OAoDA;AAGf,+FAtDA,sBAAc,OAsDA;AACd,gGAtDA,uBAAe,OAsDA;AACf,kGAtDA,yBAAiB,OAsDA;AApDnB,uCAWmB;AAkBjB,mGA5BA,4BAAkB,OA4BA;AAClB,wGA5BA,iCAAuB,OA4BA;AACvB,iGA5BA,0BAAgB,OA4BA;AAKhB,qGAhCA,8BAAoB,OAgCA;AACpB,oGAhCA,6BAAmB,OAgC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B,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..0132738a3 --- /dev/null +++ b/src/extractors/megacloud.ts @@ -0,0 +1,230 @@ +import crypto from "crypto"; +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 tracks = { + file: string; + kind: string; + label?: string; + default?: boolean; +}; + +type unencrypSources = { + file: string; + type: string; +}; + +type apiFormat = { + sources: string | unencrypSources[]; + tracks: tracks[]; + encrypted: boolean; + intro: Intro; + outro: Intro; + server: number; +}; + +class MegaCloud extends VideoExtractor { + + protected override serverName = 'MegaCloud'; + protected override sources: IVideo[] = []; + + async extract(videoUrl: URL) { + try { + const result: { + sources: IVideo[]; + subtitles: ISubtitle[]; + intro?: Intro; + outro?: Intro + } = { + sources: [], + subtitles: [], + }; + + const videoId = videoUrl?.href?.split("/")?.pop()?.split("?")[0]; + const { data: srcsData } = await this.client.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 new Error("Url may have an invalid video id"); + } + + const encryptedString = srcsData.sources; + if (srcsData.encrypted && Array.isArray(encryptedString)) { + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s: any) => ({ + url: s.file, + lang: s.label ? s.label : 'Thumbnails', + })); + result.sources = encryptedString.map((s) => ({ + url: s.file, + type: s.type, + isM3U8: s.file.includes('.m3u8'), + })); + + return result; + } + + 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 as string, + vars + ); + const decrypted = this.decrypt(encryptedSource, secret); + try { + const sources = JSON.parse(decrypted); + result.intro = srcsData.intro; + result.outro = srcsData.outro; + result.subtitles = srcsData.tracks.map((s: any) => ({ + url: s.file, + lang: s.label ? s.label : 'Thumbnails', + })); + result.sources = sources.map((s: any) => ({ + url: s.file, + type: s.type, + isM3U8: s.file.includes('.m3u8'), + })); + + return result; + } catch (error) { + throw new Error("Failed to decrypt resource"); + } + } catch (err) { + throw err; + } + } + + extractVariables(text: string, sourceName: string) { + 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) ?? ""; + } + 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 { + 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/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'; /** * diff --git a/src/providers/anime/zoro.ts b/src/providers/anime/zoro.ts index eec528b09..95db9eaf2 100644 --- a/src/providers/anime/zoro.ts +++ b/src/providers/anime/zoro.ts @@ -5,23 +5,20 @@ import { AnimeParser, ISearch, IAnimeInfo, - MediaStatus, IAnimeResult, ISource, - IAnimeEpisode, IEpisodeServer, StreamingServers, MediaFormat, SubOrSub, - 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'; @@ -185,14 +182,14 @@ class Zoro extends AnimeParser { override fetchEpisodeSources = async ( episodeId: string, server: StreamingServers = StreamingServers.VidCloud - ): Promise => { + ): 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: return { @@ -212,7 +209,7 @@ 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)), }; } } @@ -273,6 +270,7 @@ class Zoro extends AnimeParser { const { data: { link }, } = await this.client.get(`${this.baseUrl}/ajax/v2/episode/sources?id=${serverId}`); + return await this.fetchEpisodeSources(link, server); } catch (err) { throw err; @@ -280,7 +278,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,