Ben 11 månader sedan
förälder
incheckning
e4c3c8d4ce
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 3 3
      js/info.js
  2. 1 1
      js/test.js

+ 3 - 3
js/info.js

@@ -171,14 +171,14 @@ extractNJSFunction = async (baseJsUrl, platform) => {
     return findFunction(baseJsContent, /([a-zA-Z0-9]+)=function\([a-zA-Z0-9]+\)\{var b=a\.split\(""\)[\s\S]*?};/);
     return findFunction(baseJsContent, /([a-zA-Z0-9]+)=function\([a-zA-Z0-9]+\)\{var b=a\.split\(""\)[\s\S]*?};/);
 }
 }
 
 
-signUrl = async (signatureCipher, baseJsUrl, platfrom) => {
+signUrl = async (signatureCipher, baseJsUrl, platform) => {
     const searchParams = {}
     const searchParams = {}
     for (const item of signatureCipher.split('&')) {
     for (const item of signatureCipher.split('&')) {
         const [key, value] = item.split('=');
         const [key, value] = item.split('=');
         searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
         searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
     }
     }
     const [url, signature, sp] = [searchParams['url'], searchParams['s'], searchParams['sp']];
     const [url, signature, sp] = [searchParams['url'], searchParams['s'], searchParams['sp']];
-    const decipher = await extractJSSignatureFunction(baseJsUrl, platfrom);
+    const decipher = await extractJSSignatureFunction(baseJsUrl, platform);
     if (!decipher) {
     if (!decipher) {
         return null;
         return null;
     }
     }
@@ -202,7 +202,7 @@ signUrl = async (signatureCipher, baseJsUrl, platfrom) => {
         searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
         searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
     }
     }
 
 
-    const nFunction = await extractNJSFunction(baseJsUrl, platfrom);
+    const nFunction = await extractNJSFunction(baseJsUrl, platform);
     const n = searchParams['n']
     const n = searchParams['n']
     if (n && nFunction) {
     if (n && nFunction) {
         const newN = nFunction(n);
         const newN = nFunction(n);

+ 1 - 1
js/test.js

@@ -1,4 +1,4 @@
-detail(`https://www.youtube.com/watch?v=yBjnGz4S8FU`, 'WEB')
+detail(`https://www.youtube.com/watch?v=1wYNFfgrXTI`, 'WEB')
     .then(res => {
     .then(res => {
         console.log(res);
         console.log(res);
     })
     })