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) {
|
async loveTrack(track) {
|
||||||
if (!track.artist?.name || track.title) return;
|
if (!track.artist?.name || !track.title) return;
|
||||||
const trackKey = `${track.artist.name}-${track.title}`;
|
const trackKey = `${track.artist.name}-${track.title}`;
|
||||||
if (!this.isEnabled() || this.lovingTracks.has(trackKey)) return;
|
if (!this.isEnabled() || this.lovingTracks.has(trackKey)) return;
|
||||||
this.lovingTracks.add(trackKey);
|
this.lovingTracks.add(trackKey);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue