From abeac45abe7d63bf880e7b99df7287516113c86f Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Sun, 6 Nov 2011 16:42:43 +0300 Subject: [PATCH 1/1] Fix duplicated downloads from YouTube user page where watch URLs are not always end with &. Stop scan on closing bracker prevents regexp to capture two links instead of one. --- youtube-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-dl b/youtube-dl index 30a02e5..5e98b9d 100755 --- a/youtube-dl +++ b/youtube-dl @@ -2548,7 +2548,7 @@ class YoutubeUserIE(InfoExtractor): _TEMPLATE_URL = 'http://gdata.youtube.com/feeds/api/users/%s' _GDATA_PAGE_SIZE = 50 _GDATA_URL = 'http://gdata.youtube.com/feeds/api/users/%s/uploads?max-results=%d&start-index=%d' - _VIDEO_INDICATOR = r'/watch\?v=(.+?)&' + _VIDEO_INDICATOR = r'/watch\?v=(.+?)[\<&]' _youtube_ie = None IE_NAME = u'youtube:user' -- 1.8.3.1