Revert incorrect changes

This commit is contained in:
Thongrapee Panyapatiphan 2021-12-18 14:53:00 +07:00
parent d8086be5cf
commit 5ce3f92023
No known key found for this signature in database
GPG key ID: 4B08AEC7F50F1967
2 changed files with 9 additions and 10 deletions

View file

@ -92,8 +92,7 @@ export default class implements Command {
// YouTube source
if (url.searchParams.get('list')) {
// YouTube playlist
const playlist = await this.getSongs.youtubePlaylist(url.searchParams.get('list')!, playlistLimit);
newSongs.push(...playlist);
newSongs.push(...await this.getSongs.youtubePlaylist(url.searchParams.get('list')!));
} else {
// Single video
const song = await this.getSongs.youtubeVideo(url.href);