From bf50f1e739414d13259786f1055cb3ea393d0298 Mon Sep 17 00:00:00 2001 From: RblSb Date: Sat, 5 Jul 2025 10:09:55 +0300 Subject: Update call and fix readme icon --- build/server.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build/server.js') diff --git a/build/server.js b/build/server.js index 6616817..ecf4c3b 100644 --- a/build/server.js +++ b/build/server.js @@ -6538,9 +6538,7 @@ server_cache_YoutubeCache.prototype = { if(useCookies == null) { useCookies = false; } - return this.ytDlp.execAsync(url,{ dumpSingleJson : true, quiet : true, cookies : useCookies ? this.getCookiesPathOrNull() : null}).then(function(data) { - return JSON.parse(data); - }); + return this.ytDlp.getInfoAsync(url,{ cookies : useCookies ? this.getCookiesPathOrNull() : null}); } ,getCookiesPathOrNull: function() { var cookiesPath = "" + this.main.userDir + "/cookies.txt"; -- cgit v1.2.3