youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 955737b2d40c0ce947c13659a27aae0c41077c65
parent 263eff9537c73caa9bff42b1e675043eaa124f9a
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 18 Mar 2016 21:50:44 +0600

[extractor/generic] Force Content-Type to lowecase

Diffstat:
Myoutube_dl/extractor/generic.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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(