Форматирование кода
This commit is contained in:
parent
bec9c0b940
commit
03e9a275ae
1 changed files with 4 additions and 3 deletions
|
@ -711,10 +711,11 @@ class Queue<T = unknown> {
|
|||
// source: "youtube"
|
||||
// });
|
||||
let info = await YouTube.getVideo(track.url)
|
||||
.then(x => x.videos[0])
|
||||
.then((x) => x.videos[0])
|
||||
.catch(Util.noop);
|
||||
if (!info) info = await YouTube.search(track.author)
|
||||
.then(x => x[0])
|
||||
if (!info)
|
||||
info = await YouTube.search(track.author)
|
||||
.then((x) => x[0])
|
||||
.catch(Util.noop);
|
||||
if (!info) {
|
||||
if (this.options.leaveOnEnd) this.destroy();
|
||||
|
|
Loading…
Reference in a new issue