projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
263eff9
)
[extractor/generic] Force Content-Type to lowecase
author
Sergey M․
<dstftw@gmail.com>
Fri, 18 Mar 2016 15:50:44 +0000
(21:50 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 18 Mar 2016 15:50:44 +0000
(21:50 +0600)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index b75db12521caee855e41b086e931d2e7d79a49d2..cce7799e2078e0c8ddb80cbd282a39f7a1bf45e8 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-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(