aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorThongrapee Panyapatiphan <[email protected]>2021-12-18 14:53:00 +0700
committerThongrapee Panyapatiphan <[email protected]>2021-12-18 14:53:00 +0700
commit5ce3f92023d56b16c8b15e584084fe90e7ab9b55 (patch)
tree82a604cb5b64ccf55842b544d99e67d0b59ebbac /src/commands
parentd8086be5cf1ab7152a6dc27ada78b3d186d85220 (diff)
downloadmuse-5ce3f92023d56b16c8b15e584084fe90e7ab9b55.tar.xz
muse-5ce3f92023d56b16c8b15e584084fe90e7ab9b55.zip
Revert incorrect changes
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/play.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/play.ts b/src/commands/play.ts
index ddaa6bd..c791930 100644
--- a/src/commands/play.ts
+++ b/src/commands/play.ts
@@ -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);