From 2c15c25f0e601863e8e90f0ac149f37467036974 Mon Sep 17 00:00:00 2001 From: Daniel Hyders Date: Mon, 1 Nov 2021 02:16:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=F0=9F=90=9B=201.1.1:=20Simple=20ov?= =?UTF-8?q?ersight=20caused=20Songfish=20to=20not=20recognise=20Spotify=20?= =?UTF-8?q?songs=20in=20certain=20conditions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/interactions/play.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 637605f..5793485 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "songfish", - "version": "1.1.0", + "version": "1.1.1", "description": "An open-sourced music bot for Discord", "main": "src/index.js", "repository": "https://github.com/Dannnington/songfish.git", diff --git a/src/interactions/play.js b/src/interactions/play.js index 2e2973d..391e7b2 100644 --- a/src/interactions/play.js +++ b/src/interactions/play.js @@ -125,7 +125,7 @@ module.exports = { url: meta.URL }; - if (player.queue.current === new Song(track[0])) player.queue.current = thisTrack; + if (player.queue.current.identifier === thisTrack.identifier) player.queue.current = thisTrack; const queueTrackIndex = player.queue.tracks.findIndex(f => f.identifier === new Song(track[0]).identifier); const queueTrackLastIndex = player.queue.previous.findIndex(f => f.identifier === new Song(track[0]).identifier); if (queueTrackIndex !== -1) player.queue.tracks[queueTrackIndex] = thisTrack;