aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--build/server.js4
-rw-r--r--src/server/cache/YoutubeCache.hx6
3 files changed, 4 insertions, 8 deletions
diff --git a/README.md b/README.md
index 600b61d..349d94b 100644
--- a/README.md
+++ b/README.md
@@ -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> {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage