Skip to content

Commit

Permalink
fix(play): early playlist detection
Browse files Browse the repository at this point in the history
Fixes #1141
  • Loading branch information
eritislami committed May 1, 2022
1 parent 6d16cb2 commit 84571d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions commands/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export default {
const url = args[0];

// Start the playlist if playlist url was provided
if (
(!videoPattern.test(args[0]) && playlistPattern.test(args[0])) ||
(scdl.isValidUrl(url) && url.includes("/sets/"))
) {
if (playlistPattern.test(args[0]) || (scdl.isValidUrl(url) && url.includes("/sets/"))) {
return message.client.commands.get("playlist").execute(message, args);
}

Expand Down

0 comments on commit 84571d7

Please sign in to comment.