Skip to content

Commit 46f4fbe

Browse files
committed
fix(endpointlz): Mark play as new from source
May fix scrobble clients not refreshing when scrobbling old/offline plays #430
1 parent a3110db commit 46f4fbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/sources/EndpointListenbrainzSource.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export class EndpointListenbrainzSource extends MemorySource {
7676
static formatPlayObj(obj: ListenPayload, options: FormatPlayObjectOptions & {
7777
nowPlaying?: boolean
7878
} = {}): PlayObject {
79-
return listenPayloadToPlay(obj, options.nowPlaying);
79+
const play = listenPayloadToPlay(obj, options.nowPlaying);
80+
play.meta.newFromSource = true;
81+
return play;
8082
}
8183

8284
getRecentlyPlayed = async (options = {}) => {

0 commit comments

Comments
 (0)