diff --git a/package.json b/package.json index f6c18ba..bba9ba5 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "merge-options": "^2.0.0", "moment": "^2.27.0", "node-fetch": "^2.6.0", - "soundcloud-scraper": "^1.0.2", + "soundcloud-scraper": "^2.0.0", "spotify-url-info": "^1.3.1", "ytpl": "^0.2.4", "ytsr": "^0.1.19" diff --git a/src/Player.js b/src/Player.js index 70a6193..ff543da 100644 --- a/src/Player.js +++ b/src/Player.js @@ -152,7 +152,7 @@ class Player extends EventEmitter { } else if (queryType === 'soundcloud-song') { const soundcloudData = await soundcloud.getSongInfo(query).catch(() => {}) if (soundcloudData) { - updatedQuery = `${soundcloudData.author} - ${soundcloudData.title}` + updatedQuery = `${soundcloudData.author.name} - ${soundcloudData.title}` queryType = 'youtube-video-keywords' } }