]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[collegehumor] The video may not contain any file in webm format (#2277)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 30 Jan 2014 17:21:01 +0000 (18:21 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 30 Jan 2014 17:33:49 +0000 (18:33 +0100)
For example http://www.collegehumor.com/video/5812266

youtube_dl/extractor/collegehumor.py

index d10b7bd0cda2161838e83da741fe7a2f6c88f575..a128041c45b271ed18327c1da3d272b95bbd9989 100644 (file)
@@ -49,7 +49,7 @@ class CollegeHumorIE(InfoExtractor):
         PREFS = {'high_quality': 2, 'low_quality': 0}
         formats = []
         for format_key in ('mp4', 'webm'):
-            for qname, qurl in vdata[format_key].items():
+            for qname, qurl in vdata.get(format_key, {}).items():
                 formats.append({
                     'format_id': format_key + '_' + qname,
                     'url': qurl,