projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
629be17
)
[youtube] Do not break upon unknown formats
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 23 Jan 2014 22:21:42 +0000
(23:21 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 23 Jan 2014 22:21:42 +0000
(23:21 +0100)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 6deb56447e5d01c64f68bd947c98dba8df82e7c2..8816f4f801b60eba8fed2042a2f3a7031c7a08c6 100644
(file)
--- 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