Skip to content

Commit 130538c

Browse files
authored
Merge pull request #255 from FoxxMD/GH-254/playCompletedOnCleanup
fix(spotify): Generate played object from cleanup with correct TS
2 parents f251620 + 1486613 commit 130538c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/sources/MemorySource.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export default class MemorySource extends AbstractSource {
105105
// if we haven't already tried to discover any in-progress plays then do it now (and only once)
106106
if(!this.playerCleanupDiscoveryAttempt.has(key)) {
107107
this.playerCleanupDiscoveryAttempt.set(key, true);
108-
const cleanupPlay = player.getPlayedObject();
108+
// get play as completed
109+
const cleanupPlay = player.getPlayedObject(true);
109110
let discoverablePlay: boolean;
110111
if(cleanupPlay !== undefined) {
111112
const [discoverable, discoverableReason] = this.isListenedPlayDiscoverable(cleanupPlay);

0 commit comments

Comments
 (0)