fix(debrid): ensure cache is committed before returning playback link

This commit is contained in:
Viren070
2025-11-06 21:17:12 +00:00
parent ea9c4b9340
commit 71b5d34a25
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -619,7 +619,8 @@ export class NzbDAVService implements DebridService {
await NzbDAVService.playbackLinkCache.set(
cacheKey,
playbackLink,
Env.BUILTIN_DEBRID_PLAYBACK_LINK_CACHE_TTL
Env.BUILTIN_DEBRID_PLAYBACK_LINK_CACHE_TTL,
true
);
return playbackLink;
+2 -1
View File
@@ -357,7 +357,8 @@ export class StremThruInterface implements DebridService {
await StremThruInterface.playbackLinkCache.set(
cacheKey,
playbackLink,
Env.BUILTIN_DEBRID_PLAYBACK_LINK_CACHE_TTL
Env.BUILTIN_DEBRID_PLAYBACK_LINK_CACHE_TTL,
true
);
return playbackLink;
+2 -1
View File
@@ -425,7 +425,8 @@ export class TorboxDebridService implements DebridService {
await TorboxDebridService.playbackLinkCache.set(
cacheKey,
playbackLink,
Env.BUILTIN_DEBRID_INSTANT_AVAILABILITY_CACHE_TTL
Env.BUILTIN_DEBRID_INSTANT_AVAILABILITY_CACHE_TTL,
true
);
return playbackLink;