Browse Source

[youtube] Do not break upon unknown formats

master
Philipp Hagemeister 10 years ago
parent
commit
0b65e5d40f
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/youtube.py

3
youtube_dl/extractor/youtube.py

@ -1290,7 +1290,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
'url': video_real_url, 'url': video_real_url,
'player_url': player_url, 'player_url': player_url,
} }
dct.update(self._formats[itag])
if itag in self._formats:
dct.update(self._formats[itag])
formats.append(dct) formats.append(dct)
return formats return formats

Loading…
Cancel
Save