pretty
This commit is contained in:
parent
ca53b6da0c
commit
241a22b5d1
1 changed files with 3 additions and 3 deletions
|
@ -628,11 +628,11 @@ class Queue<T = unknown> {
|
|||
const hasCustomDownloader = typeof this.onBeforeCreateStream === "function";
|
||||
|
||||
if (["youtube", "spotify", "soundcloud"].includes(track.raw.source)) {
|
||||
|
||||
let spotifyResolved = false;
|
||||
if (track.raw.source === "spotify" && !track.raw.engine) {
|
||||
track.raw.engine = await play.search(`${track.author} ${track.title}`, { limit: 5 })
|
||||
.then(res => res[0].url)
|
||||
track.raw.engine = await play
|
||||
.search(`${track.author} ${track.title}`, { limit: 5 })
|
||||
.then((res) => res[0].url)
|
||||
.catch(Util.noop);
|
||||
spotifyResolved = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue