Skip to content

Commit

Permalink
LastFM - Don't send song duration on scrobble
Browse files Browse the repository at this point in the history
fixes #102
  • Loading branch information
Inrixia committed Dec 24, 2024
1 parent 3f5ae22 commit bd4a4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/LastFM/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const makeScrobbleOpts = ({ metaTags, playbackStart, playbackContext }: CurrentT
trackNumber: tags.trackNumber,
mbid: tags.musicbrainz_trackid,
timestamp: (playbackStart / 1000).toFixed(0),
duration: playbackContext.actualDuration.toFixed(0),
// duration: playbackContext.actualDuration.toFixed(0),
};
// @ts-expect-error TS really hates iterating keys cuz its unsafe
for (const key in scrobbleOpts) if (scrobbleOpts[key] === undefined) delete scrobbleOpts[key];
Expand Down

0 comments on commit bd4a4bd

Please sign in to comment.