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 | |
| parent | 2e1ecf46cfd4409bee2f02da418a0a7142f137e4 (diff) | |
Update call and fix readme icon
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | build/server.js | 4 | ||||
| -rw-r--r-- | src/server/cache/YoutubeCache.hx | 6 |
3 files changed, 4 insertions, 8 deletions
@@ -1,4 +1,4 @@ -# <img src="./res/img/favicon.svg" height="40" align="top"> SyncTube
+# <img src="./res/img/favicon.svg" width="40" height="40" align="top"> SyncTube
Synchronized video viewing with chat and other features.
Lightweight modern implementation and a very easy way to run locally.
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"; diff --git a/src/server/cache/YoutubeCache.hx b/src/server/cache/YoutubeCache.hx index 8976f89..cb3d954 100644 --- a/src/server/cache/YoutubeCache.hx +++ b/src/server/cache/YoutubeCache.hx @@ -189,11 +189,9 @@ class YoutubeCache { } function getInfoAsync(url:String, useCookies = false):Promise<VideoInfo> { - return ytDlp.execAsync(url, { - dumpSingleJson: true, - quiet: true, + return cast ytDlp.getInfoAsync(url, { cookies: useCookies ? getCookiesPathOrNull() : null, - }).then(data -> Json.parse(data)); + }); } function getCookiesPathOrNull():Null<String> { |
