Форматирование кода

This commit is contained in:
JonnyBro 2022-09-13 21:20:35 +05:00
parent bec9c0b940
commit 03e9a275ae

View file

@ -711,10 +711,11 @@ class Queue<T = unknown> {
// source: "youtube" // source: "youtube"
// }); // });
let info = await YouTube.getVideo(track.url) let info = await YouTube.getVideo(track.url)
.then(x => x.videos[0]) .then((x) => x.videos[0])
.catch(Util.noop); .catch(Util.noop);
if (!info) info = await YouTube.search(track.author) if (!info)
.then(x => x[0]) info = await YouTube.search(track.author)
.then((x) => x[0])
.catch(Util.noop); .catch(Util.noop);
if (!info) { if (!info) {
if (this.options.leaveOnEnd) this.destroy(); if (this.options.leaveOnEnd) this.destroy();