diff --git a/dist/extractors/rapidcloud.js b/dist/extractors/rapidcloud.js index 8ea851a9c..24f502a97 100644 --- a/dist/extractors/rapidcloud.js +++ b/dist/extractors/rapidcloud.js @@ -43,8 +43,8 @@ class RapidCloud extends models_1.VideoExtractor { let extractedKey = ''; let currentIndex = 0; for (const index of decryptKey) { - let start = index[0] + currentIndex; - let end = start + index[1]; + const start = index[0] + currentIndex; + const end = start + index[1]; for (let i = start; i < end; i++) { extractedKey += res.data.sources[i]; sourcesArray[i] = ''; diff --git a/dist/extractors/rapidcloud.js.map b/dist/extractors/rapidcloud.js.map index b17c12416..3fe744925 100644 --- a/dist/extractors/rapidcloud.js.map +++ b/dist/extractors/rapidcloud.js.map @@ -1 +1 @@ -{"version":3,"file":"rapidcloud.js","sourceRoot":"","sources":["../../src/extractors/rapidcloud.ts"],"names":[],"mappings":";;;;;AAAA,qCAA+B;AAC/B,0DAAiC;AACjC,oCAA2D;AAC3D,sCAAkF;AAElF,MAAM,UAAW,SAAQ,uBAAc;IAAvC;;QACqB,eAAU,GAAG,YAAY,CAAC;QAC1B,YAAO,GAAa,EAAE,CAAC;QAEzB,gBAAW,GAAG,kBAAkB,CAAC;QACjC,SAAI,GAAG,wBAAwB,CAAC;QAExC,YAAO,GAAG,KAAK,EAAE,QAAa,EAA+D,EAAE;;YACtG,MAAM,MAAM,GAAiE;gBAC3E,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,EAAE;aACd,CAAC;YACF,IAAI;gBACF,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;qBACrC;iBACF,CAAC;gBAEF,IAAI,GAAG,GAAG,IAAI,CAAC;gBAEf,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC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,wBAAwB;QACxB,UAAU;QACV,UAAU;QACV,QAAQ;QACR,KAAK;IACP,CAAC;CAAA;AAED,kBAAe,UAAU,CAAC"} \ No newline at end of file +{"version":3,"file":"rapidcloud.js","sourceRoot":"","sources":["../../src/extractors/rapidcloud.ts"],"names":[],"mappings":";;;;;AAAA,qCAA+B;AAC/B,0DAAiC;AACjC,oCAA2D;AAC3D,sCAAkF;AAElF,MAAM,UAAW,SAAQ,uBAAc;IAAvC;;QACqB,eAAU,GAAG,YAAY,CAAC;QAC1B,YAAO,GAAa,EAAE,CAAC;QAEzB,gBAAW,GAAG,kBAAkB,CAAC;QACjC,SAAI,GAAG,wBAAwB,CAAC;QAExC,YAAO,GAAG,KAAK,EAAE,QAAa,EAA+D,EAAE;;YACtG,MAAM,MAAM,GAAiE;gBAC3E,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,EAAE;aACd,CAAC;YACF,IAAI;gBACF,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;qBACrC;iBACF,CAAC;gBAEF,IAAI,GAAG,GAAG,IAAI,CAAC;gBAEf,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACzB,WAAW,QAAQ,CAAC,QAAQ,mCAAmC,EAAE,EAAE,EACnE,OAAO,CACR,CAAC;gBAEF,IAAI,EACF,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAC5C,GAAG,GAAG,CAAC;gBAER,IAAI,UAAU,GAAG,MAAM,CACrB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,yDAAyD,CAAC,CACjF,CAAC,IAAI,CAAC;gBAEP,UAAU,GAAG,IAAA,uBAAe,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AAC;YAC7J,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEvF,4DAA4D;YAC5D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAChC,kDAAkD,GAAG,EAAE,EACvD;gBACE,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,GAAG;gBACN,CAAC,EAAE,CAAC;gBACJ,EAAE,EAAE,sCAAsC;gBAC1C,EAAE,EAAE,EAAE;gBACN,MAAM,EAAE,GAAG;aACZ,EACD;gBACE,OAAO,EAAE;oBACP,OAAO,EAAE,MAAM;iBAChB;aACF,CACF,CAAC;YAEF,OAAO,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAC;QAEF,+CAA+C;QAC/C,kBAAkB;QAElB,+FAA+F;QAE/F,0BAA0B;QAC1B,qBAAqB;QACrB,QAAQ;QAER,oDAAoD;QACpD,2CAA2C;QAC3C,gCAAgC;QAChC,sCAAsC;QACtC,qDAAqD;QACrD,0CAA0C;QAC1C,wBAAwB;QACxB,UAAU;QACV,UAAU;QACV,QAAQ;QACR,KAAK;IACP,CAAC;CAAA;AAED,kBAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/extractors/vidcloud.js b/dist/extractors/vidcloud.js index 0cd1b9016..d7e2603b9 100644 --- a/dist/extractors/vidcloud.js +++ b/dist/extractors/vidcloud.js @@ -41,8 +41,8 @@ class VidCloud extends models_1.VideoExtractor { let extractedKey = ''; let currentIndex = 0; for (const index of key) { - let start = index[0] + currentIndex; - let end = start + index[1]; + const start = index[0] + currentIndex; + const end = start + index[1]; for (let i = start; i < end; i++) { extractedKey += res.data.sources[i]; sourcesArray[i] = ''; diff --git a/dist/extractors/vidcloud.js.map b/dist/extractors/vidcloud.js.map index 83690e459..4db520ebc 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;gBACF,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,OAAO,CACR,CAAC;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AAC,CAAC;oBAClB,CAAC,CAAC,CAAC;oBAEH,KAAK,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,OAAO,EAAE;wBAC9B,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;qBACJ;oBACD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;iBACtC;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;aACf;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/src/extractors/rapidcloud.ts b/src/extractors/rapidcloud.ts index 6ba918e4d..95215b1e1 100644 --- a/src/extractors/rapidcloud.ts +++ b/src/extractors/rapidcloud.ts @@ -58,8 +58,8 @@ class RapidCloud extends VideoExtractor { let extractedKey = ''; let currentIndex = 0; for (const index of decryptKey) { - let start = index[0] + currentIndex; - let end = start + index[1]; + const start = index[0] + currentIndex; + const end = start + index[1]; for (let i = start; i < end; i++) { extractedKey += res.data.sources[i]; sourcesArray[i] = ''; diff --git a/src/extractors/vidcloud.ts b/src/extractors/vidcloud.ts index 76b5917fe..2b2eae1c0 100644 --- a/src/extractors/vidcloud.ts +++ b/src/extractors/vidcloud.ts @@ -51,8 +51,8 @@ class VidCloud extends VideoExtractor { let currentIndex = 0; for (const index of key) { - let start = index[0] + currentIndex; - let end = start + index[1]; + const start = index[0] + currentIndex; + const end = start + index[1]; for (let i = start; i < end; i++) { extractedKey += res.data.sources[i]; sourcesArray[i] = '';