]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Fix duplicated downloads from YouTube user page where watch URLs are not always end...
authoranatoly techtonik <techtonik@gmail.com>
Sun, 6 Nov 2011 13:42:43 +0000 (16:42 +0300)
committeranatoly techtonik <techtonik@gmail.com>
Sun, 6 Nov 2011 13:42:43 +0000 (16:42 +0300)
youtube-dl

index 30a02e5cd1c5a0de92a217289765e4b8786157d3..5e98b9dbdbda0a06c7ee85960d0c6eed607dad59 100755 (executable)
@@ -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'