From 76a0b71d186d57686d2b73e69aa9a01b0c3b15c4 Mon Sep 17 00:00:00 2001 From: Garoxas Date: Thu, 3 Feb 2022 19:31:49 +0700 Subject: [PATCH] update node-ytdl-core to https://github.com/fent/node-ytdl-core/pull/1055 --- data/inject/youtbe-dl/vendor/sig.js | 1 + manifest.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/inject/youtbe-dl/vendor/sig.js b/data/inject/youtbe-dl/vendor/sig.js index 9fc96c2..ef11491 100644 --- a/data/inject/youtbe-dl/vendor/sig.js +++ b/data/inject/youtbe-dl/vendor/sig.js @@ -56,6 +56,7 @@ exports.extractFunctions = body => { }; let extractNCode = () => { let functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`); + if (functionName.includes('[')) functionName = utils.between(body, `${functionName.split('[')[0]}=[`, `]`); if (functionName && functionName.length) { let functionStart = `${functionName}=function(a)`; let ndx = body.indexOf(functionStart); diff --git a/manifest.json b/manifest.json index 775d111..9bdbd84 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name": "YouTube Video and Audio Downloader (Dev Edt.)", "description": "__MSG_appDesc__", "author": "Feller", - "version": "1.1.6.1", + "version": "1.1.6.2", "manifest_version": 2, "default_locale": "en", "permissions": [