Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Generic Extractor tries to download videos with unspecified MIME/Content-Type #4149
Comments
|
How would you suggest detecting the file type? |
|
As soon as you have 1KB or so of data downloaded, check if it contains a |
|
Thank you for the report. I believe this issue to be fixed in youtube-dl 2014.11.26 and newer. Refer to our FAQ if you need help updating. |
We can't expect webservers to know all video file types out there, so they may return no Content-Type on URLs that may actually lead directly to a file. The GenericExtractor however starts to download the entire file in this case, which isn't helpful.
Test URL: http://sva.wakku.to/~chris/symlinks/temp/00016.m2ts
The server doesn't know about m2ts files and doesn't return a "Content-Type" field in the header.