Ignore download errors because they can interrupt downloading all user videos.

This commit is contained in:
Paweł Paprota 2010-12-11 17:50:20 +01:00
parent 549f25758b
commit afef7c1599
1 changed files with 4 additions and 1 deletions

View File

@ -2044,7 +2044,10 @@ class YoutubeUserIE(InfoExtractor):
self._downloader.to_screen("[youtube] user %s: Collected %d video ids" % (username, len(video_ids)))
for video_id in video_ids:
self._youtube_ie.extract('http://www.youtube.com/watch?v=%s' % video_id)
try:
self._youtube_ie.extract('http://www.youtube.com/watch?v=%s' % video_id)
except DownloadError:
continue
class PostProcessor(object):
"""Post Processor class.