1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 00:32:52 +08:00

[extractor/generic] Force Content-Type to lowecase

This commit is contained in:
Sergey M․ 2016-03-18 21:50:44 +06:00
parent 263eff9537
commit 955737b2d4

View File

@ -1248,7 +1248,7 @@ class GenericIE(InfoExtractor):
}
# Check for direct link to a video
content_type = head_response.headers.get('Content-Type', '')
content_type = head_response.headers.get('Content-Type', '').lower()
m = re.match(r'^(?P<type>audio|video|application(?=/(?:ogg$|(?:vnd\.apple\.|x-)?mpegurl)))/(?P<format_id>[^;\s]+)', content_type)
if m:
upload_date = unified_strdate(