[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor(AppleMusicSource): remove unused backlogged plays logic

Removed the unused `getBackloggedPlays` method and cleaned up the `getRecentlyDiscoveredPlays` logic in `AppleMusicSource` to streamline track processing.

Exerra (Jul 14, 2026, 12:31 AM +0300) 8c789123 06ed3f43

+3 -20
+3 -20
src/backend/sources/AppleMusicSource.ts
··· 118 118 return this.parseRecentAgainstResponse(plays).plays; 119 119 } 120 120 121 - protected getBackloggedPlays = async (options: RecentlyPlayedOptions): Promise<PlayObject[]> => { 122 - const plays = await this.getUpstreamRecentlyPlayed(options); 123 - if (plays.length === 0) return plays; 124 - let cumDur = 0; 125 - const now = dayjs(); 126 - return plays.map(play => { 127 - const dated = { 128 - ...play, 129 - data: { ...play.data, playDate: now.subtract(cumDur, 'seconds') }, 130 - }; 131 - cumDur += play.data.duration ?? 1; 132 - return dated; 133 - }); 134 - } 135 - 136 121 private getTracks = async (limit: number): Promise<PlayObject[]> => { 137 122 const clampedLimit = Math.max(1, Math.min(30, Math.round(limit))); 138 123 const result = await this.musicKit.me.history.getRecentlyPlayedTracks({ limit: clampedLimit as 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30, types: ["songs"] }); ··· 264 249 const referencePlays = await this.getRecentlyPlayed(); 265 250 const reversedPlays = [...referencePlays]; 266 251 reversedPlays.reverse(); 267 - const currentDiscovered = await this.getRecentlyDiscoveredPlays(false); 268 - if(currentDiscovered === undefined || currentDiscovered.length === 0) { 269 - for(const refPlay of reversedPlays) { 270 - await this.addPlayToDiscovered(refPlay); 271 - } 252 + 253 + for(const refPlay of reversedPlays) { 254 + await this.addPlayToDiscovered(refPlay); 272 255 } 273 256 } 274 257 return true;