aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-04-03 09:45:45 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:26:52 +0100
commit9177ce4d8ce93a7de0c75bdfdfd36bca5d6086f9 (patch)
tree5f8c6382c043928c0efb0970df6adc701fabaea4
parentce5cafea407319ce9a69acabeb748563cc0d7db0 (diff)
Support new playlist style URL (fixes issue #114)
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 3735c7eac..09f1441a4 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -1493,7 +1493,7 @@ class YoutubeSearchIE(InfoExtractor):
class YoutubePlaylistIE(InfoExtractor):
"""Information Extractor for YouTube playlists."""
- _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:view_play_list|my_playlists)\?.*?p=([^&]+).*'
+ _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:(?:view_play_list|my_playlists)\?.*?p=|user/.*?/user/)([^&]+).*'
_TEMPLATE_URL = 'http://www.youtube.com/view_play_list?p=%s&page=%s&gl=US&hl=en'
_VIDEO_INDICATOR = r'/watch\?v=(.+?)&'
_MORE_PAGES_INDICATOR = r'(?m)>\s*Next\s*</a>'