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.
[request] Add option to prefer HTTP over RTMP (and vice versa) for supported sites. #2262
Comments
|
Can you name an example URL that would be improved by this patch? For our test video http://www.liveleak.com/view?i=757_1364311680 I only get the HTTP download. In any case, the proper way is to extract all URLs and return them, and let the youtube-dl format handling code figure out which format/URL to pick. |
|
This is the one I was trying to to download: http://www.liveleak.com/view?i=f93_1390833151 |
|
Thank you, with that URL it's easy to test. This issue has been fixed in youtube-dl 2014.01.30 and newer (type |
Some sites, like LiveLeak, support both HTTP and RTMP streaming for some videos. Since rtmpdump is kind of flaky, it would be nice to be able to select HTTP.
The LiveLeak extractor currently just chooses the first file it sees, without giving the user the option. Here is a temporary patch which just forces LiveLeak to look for HTTP first:
diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py
index 5ae57a7..2e4010b 100644
--- a/youtube_dl/extractor/liveleak.py
+++ b/youtube_dl/extractor/liveleak.py
@@ -30,7 +30,7 @@ class LiveLeakIE(InfoExtractor):
(