From 1d1e5d11fac8aab50b939bb8eefdcabcc6215c0c Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Wed, 28 Feb 2024 23:09:24 -0500 Subject: [PATCH] feat(dramacool): add genres, duration, & status to fetchMediaInfo (#479) * Feat(dramacool): add (genres, duration, status) to fetchMediaInfo * Feat(dramacool): add (genres, duration, status) to fetchMediaInfo * Feat(dramacool): add (genres, duration, status) to fetchMediaInfo * [CodeFactor] Apply fixes * Feat(dramacool): add (genres, duration, status) to fetchMediaInfo * Feat(dramacool): add (totalPages) to search --------- Co-authored-by: codefactor-io --- dist/extractors/vidcloud.js | 3 +- dist/extractors/vidcloud.js.map | 2 +- dist/providers/movies/dramacool.js | 37 ++++++++++++- 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 | 43 +++++++++++++-- test/movies/dramacool.test.ts | 20 +++++++ 9 files changed, 170 insertions(+), 13 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","sourceRoot":"","sources":["../../src/extractors/vidcloud.ts"],"names":[],"mappings":";;;;;AAAA,0DAAiC;AAEjC,sCAAqE;AACrE,oCAA+E;AAE/E,MAAM,QAAS,SAAQ,uBAAc;IAArC;;QACqB,eAAU,GAAG,UAAU,CAAC;QACxB,YAAO,GAAa,EAAE,CAAC;QAEzB,SAAI,GAAG,uBAAuB,CAAC;QAC/B,UAAK,GAAG,0BAA0B,CAAC;QAE3C,YAAO,GAAG,KAAK,EACtB,QAAa,EACb,gBAAyB,KAAK,EAC+B,EAAE;;YAC/D,MAAM,MAAM,GAAiE;gBAC3E,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,EAAE;aACd,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,EAAE,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;gBACzD,MAAM,OAAO,GAAG;oBACd,OAAO,EAAE;wBACP,kBAAkB,EAAE,gBAAgB;wBACpC,OAAO,EAAE,QAAQ,CAAC,IAAI;wBACtB,YAAY,EAAE,kBAAU;qBACzB;iBACF,CAAC;gBACF,IAAI,GAAG,GAAG,SAAS,CAAC;gBACpB,IAAI,OAAO,GAAG,SAAS,CAAC;gBAExB,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACzB,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,+BAA+B,EAAE,EAAE,EAC5E,O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C,CAAC;oBAEH,KAAK,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,OAAO,EAAE,CAAC;wBAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;4BAChB,GAAG,EAAE,EAAE;4BACP,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;yBAC7B,CAAC,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..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({ @@ -50,12 +61,34 @@ class DramaCool extends models_1.MovieParser { const { data } = await this.client.get(mediaId); const $ = (0, cheerio_1.load)(data); mediaInfo.id = realMediaId; + const duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); + if (duration != "") + mediaInfo.duration = duration.replace("Duration:", "").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; + break; + case 'Completed': + mediaInfo.status = models_1.MediaStatus.COMPLETED; + break; + default: + mediaInfo.status = models_1.MediaStatus.UNKNOWN; + break; + } + mediaInfo.genres = []; + const 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..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,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,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,IAAI,CAAC,OAAO,mBAAmB,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,IAAI,EAAE,CAC/E,CAAC;gBAEF,MAAM,CAAC,G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,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,CAAC;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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/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,oBAA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,CAAC,SAAS;wBACtF,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,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,OAAO,MAAM,CAAC;YAChB,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,iCAAiC;AACjC,oDAAoD;AACpD,gGAAgG;AAChG,4DAA4D;AAC5D,uDAAuD;AACvD,2BAA2B;AAC3B,QAAQ;AAER,kBAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/src/providers/movies/dramacool.ts b/src/providers/movies/dramacool.ts index e64743003..8e0f05ff1 100644 --- a/src/providers/movies/dramacool.ts +++ b/src/providers/movies/dramacool.ts @@ -10,13 +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'; @@ -26,6 +26,7 @@ class DramaCool extends MovieParser { try { const searchResult: ISearch = { currentPage: page, + totalPages: page, hasNextPage: false, results: [], }; @@ -41,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)!, @@ -68,13 +80,36 @@ class DramaCool extends MovieParser { const { data } = await this.client.get(mediaId); const $ = load(data); - mediaInfo.id = realMediaId; + mediaInfo.id = realMediaId; + + const duration = $('div.details div.info p:contains("Duration:")').first().text().trim(); + if ( duration != "" ) + mediaInfo.duration = duration.replace("Duration:", "").trim(); + const 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 = []; + const 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(), diff --git a/test/movies/dramacool.test.ts b/test/movies/dramacool.test.ts index ec8121228..66f7dc8b4 100644 --- a/test/movies/dramacool.test.ts +++ b/test/movies/dramacool.test.ts @@ -25,3 +25,23 @@ 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); +}); + +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