mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(debrid): ensure cache is committed before returning playback link
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user