Skip to content

Commit

Permalink
Merge pull request #255 from FoxxMD/GH-254/playCompletedOnCleanup
Browse files Browse the repository at this point in the history
fix(spotify): Generate played object from cleanup with correct TS
  • Loading branch information
FoxxMD authored Jan 18, 2025
2 parents f251620 + 1486613 commit 130538c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/sources/MemorySource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default class MemorySource extends AbstractSource {
// if we haven't already tried to discover any in-progress plays then do it now (and only once)
if(!this.playerCleanupDiscoveryAttempt.has(key)) {
this.playerCleanupDiscoveryAttempt.set(key, true);
const cleanupPlay = player.getPlayedObject();
// get play as completed
const cleanupPlay = player.getPlayedObject(true);
let discoverablePlay: boolean;
if(cleanupPlay !== undefined) {
const [discoverable, discoverableReason] = this.isListenedPlayDiscoverable(cleanupPlay);
Expand Down

0 comments on commit 130538c

Please sign in to comment.