···356356 plays.push(currPlay);
357357 }
358358 }
359359- const newPlays = this.processRecentPlays(plays);
359359+ const newPlays = await this.processRecentPlays(plays);
360360 // hint that scrobble timestamp source of truth should be when the track ended (player changed tracks)
361361 // rather than when we first saw the track
362362 //
+1-1
src/backend/sources/SubsonicSource.ts
···292292 // sometimes subsonic sources will return the same track as being played twice on the same player, need to remove this so we don't duplicate plays
293293 const deduped = removeDuplicates(entry.map(x => SubsonicSource.formatPlayObj(x, {sourceData: this.sourceData})));
294294 const userFiltered = this.usersAllow.length == 0 ? deduped : deduped.filter(x => x.meta.user === undefined || this.usersAllow.map(x => x.toLocaleLowerCase()).includes(x.meta.user.toLocaleLowerCase()));
295295- return this.processRecentPlays(userFiltered);
295295+ return await this.processRecentPlays(userFiltered);
296296 }
297297298298 getNewPlayer = (logger: Logger, id: PlayPlatformId, opts: PlayerStateOptions) => new SubsonicPlayerState(logger, id, opts);
+1-1
src/backend/sources/TealfmSource.ts
···9595 } catch (e) {
9696 throw new Error('Error occurred while trying to fetch records', {cause: e});
9797 }
9898- this.processRecentPlays([]);
9898+ await this.processRecentPlays([]);
9999 const plays = list.map(x => listRecordToPlay(x));
100100 return plays;
101101 }
···174174 expect(source.parseRecentAgainstResponse(plays).plays).length(20);
175175176176 source.polling = true;
177177- source.discover(plays);
177177+ await source.discover(plays);
178178179179 // first true poll emulating no new tracks played (should not add new tracks from base truth)
180180 expect(source.parseRecentAgainstResponse(plays).plays).length(0);
···201201 expect(source.parseRecentAgainstResponse(plays).plays).length(20);
202202203203 source.polling = true;
204204- source.discover(plays);
204204+ await source.discover(plays);
205205206206 // first true poll emulating no new tracks played (should not add new tracks from base truth)
207207 expect(source.parseRecentAgainstResponse(plays).plays).length(0);