diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-23 23:21:42 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-23 23:21:42 +0100 |
commit | 0b65e5d40f9d6d9a25fd463a4ab0db95022c534e (patch) | |
tree | 3b22904cb218f1a1a9e6a7b76b3a735fa8d094c2 | |
parent | 629be17af42fdb448a36a007900697d4998c3b4b (diff) |
[youtube] Do not break upon unknown formats
-rw-r--r-- | youtube_dl/extractor/youtube.py | 3 |
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 |