Skip to content

Commit

Permalink
TrackInfoCache - Register should fetch stale entries, fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Sep 20, 2024
1 parent 5d2d997 commit 881b16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/_lib/Caches/TrackInfoCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class TrackInfoCache {

const key = `${trackId}${audioQuality}`;
if (this._listeners[key]?.push(onTrackInfo) === undefined) this._listeners[key] = [onTrackInfo];
const trackInfo = await this.get(trackId, audioQuality);
const { trackInfo } = await this.getWithExpiry(trackId, audioQuality);
if (trackInfo !== undefined) onTrackInfo(trackInfo);
}

Expand Down

0 comments on commit 881b16a

Please sign in to comment.