1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-24 02:21:34 +01:00

[youtube] Do not break upon unknown formats

This commit is contained in:
Philipp Hagemeister 2014-01-23 23:21:42 +01:00
parent 629be17af4
commit 0b65e5d40f

View File

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