mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[collegehumor] The video may not contain any file in webm format (#2277)
For example http://www.collegehumor.com/video/5812266
This commit is contained in:
parent
90dc5e8693
commit
c4db377cbb
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ def _real_extract(self, url):
|
||||||
PREFS = {'high_quality': 2, 'low_quality': 0}
|
PREFS = {'high_quality': 2, 'low_quality': 0}
|
||||||
formats = []
|
formats = []
|
||||||
for format_key in ('mp4', 'webm'):
|
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({
|
formats.append({
|
||||||
'format_id': format_key + '_' + qname,
|
'format_id': format_key + '_' + qname,
|
||||||
'url': qurl,
|
'url': qurl,
|
||||||
|
|
Loading…
Reference in a new issue