From 3c5ad644d01fc0751fac72282507cb13aa4e6e1e Mon Sep 17 00:00:00 2001 From: Carlos Esteven Date: Fri, 1 Mar 2024 23:26:22 -0500 Subject: [PATCH] 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":"","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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 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,