From 713a36e0843f8fbc9b559b1a873939813fcfa860 Mon Sep 17 00:00:00 2001 From: Durgesh Kumar Dwivedi Date: Thu, 3 Oct 2024 20:40:23 +0530 Subject: [PATCH] forgot to add .endsWith method in some places --- dist/extractors/vidcloud.js | 4 ++-- dist/extractors/vidcloud.js.map | 2 +- src/extractors/vidcloud.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/extractors/vidcloud.js b/dist/extractors/vidcloud.js index 6a86986f7..7dba28f00 100644 --- a/dist/extractors/vidcloud.js +++ b/dist/extractors/vidcloud.js @@ -27,7 +27,7 @@ class VidCloud extends models_1.VideoExtractor { const sources = res.sources; this.sources = sources.map((s) => ({ url: s.file, - isM3U8: s.file.includes('.m3u8'), + isM3U8: s.file.includes('.m3u8') || s.file.endsWith('m3u8'), })); result.sources.push(...this.sources); result.sources = []; @@ -54,7 +54,7 @@ class VidCloud extends models_1.VideoExtractor { } result.sources.push({ url: sources[0].file, - isM3U8: sources[0].file.includes('.m3u8'), + isM3U8: sources[0].file.includes('.m3u8') || sources[0].file.endsWith('m3u8'), quality: 'auto', }); result.subtitles = res.tracks.map((s) => ({ diff --git a/dist/extractors/vidcloud.js.map b/dist/extractors/vidcloud.js.map index 062fd6160..9c7415e37 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,qCAAgC;AAChC,sCAAqE;AACrE,oCAAsC;AAEtC,MAAM,QAAS,SAAQ,uBAAc;IAArC;;QACqB,eAAU,GAAG,UAAU,CAAC;QACxB,YAAO,GAAa,EAAE,CAAC;QAEjC,YAAO,GAAG,KAAK,EACtB,QAAa,EACb,CAAW,EACkD,EAAE;;YAC/D,MAAM,MAAM,GAAiE;gBAC3E,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,EAAE;aACd,CAAC;YACF,IAAI,CA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B,GAAG,EAAE,EAAE;4BACP,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;yBACpD,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,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;oBAC7E,OAAO,EAAE,MAAM;iBAChB,CAAC,CAAC;gBAEH,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC;oBAC7C,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/src/extractors/vidcloud.ts b/src/extractors/vidcloud.ts index 02851e46e..197ec560a 100644 --- a/src/extractors/vidcloud.ts +++ b/src/extractors/vidcloud.ts @@ -29,7 +29,7 @@ class VidCloud extends VideoExtractor { this.sources = sources.map((s: any) => ({ url: s.file, - isM3U8: s.file.includes('.m3u8'), + isM3U8: s.file.includes('.m3u8') || s.file.endsWith('m3u8'), })); result.sources.push(...this.sources); @@ -63,7 +63,7 @@ class VidCloud extends VideoExtractor { result.sources.push({ url: sources[0].file, - isM3U8: sources[0].file.includes('.m3u8'), + isM3U8: sources[0].file.includes('.m3u8') || sources[0].file.endsWith('m3u8'), quality: 'auto', });