Skip to content

Commit

Permalink
Accept playlist IDs from a watch URL
Browse files Browse the repository at this point in the history
YouTube started using these as the default playlist URLs at some point.
  • Loading branch information
goto-bus-stop committed Mar 30, 2018
1 parent 56688f7 commit 2cccfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function normalizeMedia(video) {
const rxChannelUrl = /youtube\.com\/channel\/([^/?#]+)/i;
const rxUserUrl = /youtube\.com\/user\/([^/?#]+)/i;

const rxSimplePlaylistUrl = /youtube\.com\/playlist\?.*?list=([a-z0-9_-]+)/i;
const rxSimplePlaylistUrl = /youtube\.com\/(?:playlist|watch)\?.*?list=([a-z0-9_-]+)/i;
const rxPlaylistID = /^([a-z0-9_-]+)$/i;

/**
Expand Down

0 comments on commit 2cccfd7

Please sign in to comment.