Fix condition in loveTrack method
This commit is contained in:
parent
589c1a3e40
commit
2b67fc2609
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ export class ListenBrainzScrobbler {
|
|||
}
|
||||
|
||||
async loveTrack(track) {
|
||||
if (!track.artist?.name || track.title) return;
|
||||
if (!track.artist?.name || !track.title) return;
|
||||
const trackKey = `${track.artist.name}-${track.title}`;
|
||||
if (!this.isEnabled() || this.lovingTracks.has(trackKey)) return;
|
||||
this.lovingTracks.add(trackKey);
|
||||
|
|
|
|||
Loading…
Reference in a new issue