1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 16:36:48 +00:00

Merge pull request #211 from techtonik/patch-1

Fix duplicated downloads from YouTube user page where watch URLs are not. Thanks to anatoly techtonik.
This commit is contained in:
Philipp Hagemeister 2011-11-15 01:39:17 -08:00
commit 8b59cc93d5

View File

@ -2549,7 +2549,7 @@ class YoutubeUserIE(InfoExtractor):
_TEMPLATE_URL = 'http://gdata.youtube.com/feeds/api/users/%s' _TEMPLATE_URL = 'http://gdata.youtube.com/feeds/api/users/%s'
_GDATA_PAGE_SIZE = 50 _GDATA_PAGE_SIZE = 50
_GDATA_URL = 'http://gdata.youtube.com/feeds/api/users/%s/uploads?max-results=%d&start-index=%d' _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 _youtube_ie = None
IE_NAME = u'youtube:user' IE_NAME = u'youtube:user'