aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2011-11-06 16:42:43 +0300
committeranatoly techtonik <techtonik@gmail.com>2011-11-06 16:42:43 +0300
commitabeac45abe7d63bf880e7b99df7287516113c86f (patch)
tree1ddadc1a7c0aed6dfce70b6c3c9723d31c392707
parent0fca93ac60cd18bbe67ed0e24d1ea8c33b27ab08 (diff)
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.
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 30a02e5cd..5e98b9dbd 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'