[youtube] Do not break upon unknown formats

pull/8/head
Philipp Hagemeister 11 years ago
parent 629be17af4
commit 0b65e5d40f

@ -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

Loading…
Cancel
Save