Skip to content

Commit

Permalink
🔖🐛 1.1.1: Simple oversight caused Songfish to not recognise Spotify s…
Browse files Browse the repository at this point in the history
…ongs in certain conditions
  • Loading branch information
daniwasonline committed Nov 1, 2021
1 parent 47bdeaf commit 2c15c25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/interactions/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2c15c25

Please sign in to comment.