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) Ability to download using the "real" URL (not the "webpage_url") #1973
Comments
|
With the latest versions you can do it using the following steps:
I'm closing the issue, but if you have any question, feel free to ask. |
|
OK - I accept your answer. In fact, it had never occurred to me that you could just use a simple tool like "wget" to get the file, once you know the "real" URL. I agree that it doesn't make sense to re-implement that in youtube-dl, especially if it is difficult to do. (I also found it interesting to learn that it would be difficult to do. Interesting, that...) On Sunday, December 15, 2013 8:16 AM, Jaime Marquínez Ferrándiz notifications@github.com wrote: With the latest versions you can do it using the following steps:
|
|
Actually, @jaimeMF never said it would be difficult to do. In fact, in youtube-dl 2013.17.12 and newer, you can pass in a direct link to a video. |
|
I actually said that ;), but I was thinking in using a regex for that, inspecting the |
|
Heh heh. Funny how often things work like this. Hackers love challenges, so when they say something is (or would be) difficult to do, it is quite often the case that soon thereafter, the thing is done. Well done, guys! On Tuesday, December 17, 2013 9:06 AM, Jaime Marquínez Ferrándiz notifications@github.com wrote: I actually said that ;), but I was thinking in using a regex for that, inspecting the Content-Type header makes more sense and it's much easier. |
|
However, ... FYI, running 2013.12.17.1, I still get error messages when I pass in the direct URL. Command line I used was: youtube-dl.py -o xxx.flv "http://very.long.url" Is there, perhaps, a command line option you have to use to tell it that what it is getting is a "direct" URL? On , J S joeschmoe40@yahoo.com wrote: Heh heh. Funny how often things work like this. Hackers love challenges, so when they say something is (or would be) difficult to do, it is quite often the case that soon thereafter, the thing is done. Well done, guys! On Tuesday, December 17, 2013 9:06 AM, Jaime Marquínez Ferrándiz notifications@github.com wrote: I actually said that ;), but I was thinking in using a regex for that, inspecting the Content-Type header makes more sense and it's much easier. |
|
Open a new issue with the output and the url you are using (or at least how to get it) |
When you d/l from YouTube (using any tool, including the old-fasioned way of using a flash-enabled browser), you give it a URL like: http://youtube.com/watch/..., but that's not the real URL. What happens is that a real URL, pointing to the actual content, is created for you and that's what really gets played. This real URL is very long (over 400 characters).
You can see this long URL if you run: youtube-dl.py -j short_URL
It is in there as "url". The "short URL" is also in the "-j" output, as "webpage_url".
So, my question is: Suppose you already have the "real" URL. Is there a way (and I assume the answer is "No.", so I"m requesting that this be made possible) to download the video, using the "real" url? The reason I ask is that I think that the creation of the "real" URL takes significant time, and if you already have it, you could save time by using it.
I have tried (using version: 2013.12.11.2):
youtube-dl.py -o xxx.flv "long/real URL"
and got error messages followed by a "hang". Had to Control/C to get out and there was no file xxx.flv created.