aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-23 23:21:42 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-23 23:21:42 +0100
commit0b65e5d40f9d6d9a25fd463a4ab0db95022c534e (patch)
tree3b22904cb218f1a1a9e6a7b76b3a735fa8d094c2 /youtube_dl/extractor/youtube.py
parent629be17af42fdb448a36a007900697d4998c3b4b (diff)
[youtube] Do not break upon unknown formats
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 6deb56447..8816f4f80 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1290,7 +1290,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
'url': video_real_url,
'player_url': player_url,
}
- dct.update(self._formats[itag])
+ if itag in self._formats:
+ dct.update(self._formats[itag])
formats.append(dct)
return formats