aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/cache/YoutubeCache.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-09-03 10:30:19 +0300
committerRblSb <msrblsb@gmail.com>2025-09-03 10:30:19 +0300
commit9ec382facd8d7813716a10e5f7db3ca7f4ba0259 (patch)
tree323d4eb3b2b0d51c030daf63c1dac7db974f2b63 /src/server/cache/YoutubeCache.hx
parent0a771c1ab48819561c766790092407cf602fd68c (diff)
/crash, update yt-dlp on start, newer node fix
Diffstat (limited to 'src/server/cache/YoutubeCache.hx')
-rw-r--r--src/server/cache/YoutubeCache.hx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/cache/YoutubeCache.hx b/src/server/cache/YoutubeCache.hx
index 4f74080..c7053f9 100644
--- a/src/server/cache/YoutubeCache.hx
+++ b/src/server/cache/YoutubeCache.hx
@@ -29,6 +29,16 @@ class YoutubeCache {
}
}
+ public function checkUpdate():Void {
+ ytDlp.execAsync("-U", {
+ onData: d -> {
+ trace(d);
+ }
+ }).catchError(e -> {
+ trace(e);
+ });
+ }
+
public function cleanYtInputFiles(prefix = "__tmp"):Void {
final names = FileSystem.readDirectory(cache.cacheDir);
for (name in names) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage