aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/cache
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-07-05 10:09:55 +0300
committerRblSb <msrblsb@gmail.com>2025-07-05 10:09:55 +0300
commitbf50f1e739414d13259786f1055cb3ea393d0298 (patch)
treeb8a1fe99e0fd65d56ded434b061e6711dbf6200f /src/server/cache
parent2e1ecf46cfd4409bee2f02da418a0a7142f137e4 (diff)
Update call and fix readme icon
Diffstat (limited to 'src/server/cache')
-rw-r--r--src/server/cache/YoutubeCache.hx6
1 files changed, 2 insertions, 4 deletions
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