Skip to content

Commit

Permalink
Fix duplicated downloads from YouTube user page where watch URLs are …
Browse files Browse the repository at this point in the history
…not always end with &. Stop scan on closing bracker prevents regexp to capture two links instead of one.
  • Loading branch information
techtonik committed Nov 6, 2011
1 parent 0fca93a commit abeac45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube-dl
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit abeac45

Please sign in to comment.