aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/cache/YoutubeCache.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2026-01-17 14:53:51 +0300
committerRblSb <msrblsb@gmail.com>2026-01-17 14:53:51 +0300
commit276e12db29ab31aa002f55b1a3cc69f170c1a2c2 (patch)
tree9b383753217abed057ab2f60ff09c977c7436ab4 /src/server/cache/YoutubeCache.hx
parentc1d1be00c7cace0544c3c6cd152e8c3287b976c4 (diff)
[proxy] fix stalled requests on seeking
and minor cache fix
Diffstat (limited to 'src/server/cache/YoutubeCache.hx')
-rw-r--r--src/server/cache/YoutubeCache.hx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/cache/YoutubeCache.hx b/src/server/cache/YoutubeCache.hx
index 0618d00..158cfe1 100644
--- a/src/server/cache/YoutubeCache.hx
+++ b/src/server/cache/YoutubeCache.hx
@@ -198,9 +198,10 @@ class YoutubeCache {
});
dlVideo.then((v) -> {
- final name = cache.findFile(n -> n.startsWith(inVideoName) && n.endsWith(".mp4")) ?? {
+ final name = cache.findFile(n -> n.startsWith(inVideoName)) ?? {
final err = 'Error: cannot find downloaded file with prefix $inVideoName';
cache.logWithAdmins(client, err);
+ cancelProgress(clientName);
return;
};
FileSystem.rename('${cache.cacheDir}/$name', '${cache.cacheDir}/$outName');
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage