diff options
| author | RblSb <msrblsb@gmail.com> | 2025-07-05 10:09:55 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-07-05 10:09:55 +0300 |
| commit | bf50f1e739414d13259786f1055cb3ea393d0298 (patch) | |
| tree | b8a1fe99e0fd65d56ded434b061e6711dbf6200f /build | |
| parent | 2e1ecf46cfd4409bee2f02da418a0a7142f137e4 (diff) | |
Update call and fix readme icon
Diffstat (limited to 'build')
| -rw-r--r-- | build/server.js | 4 |
1 files changed, 1 insertions, 3 deletions
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"; |
