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.
youtube-dl get-url videoplayback.mp4 not videotitle.mp4 #13325
Comments
|
YouTube servers do not specify a filename, so the last part in the path ( |
|
@AdnanHussainTurki did you find any workaround for this issue? |
|
Actually, I got the solution. |
|
@yan12125 But even If I added title query to links got by youtube-dl , server doesn't respond with content-disposition header |
|
@AdnanHussainTurki how? |
|
@abou7mied this kind of link does not support the explicit additional of parameters like your title one. for adding and resolving this issue, you need to encourage google to add a legit title parameter for you in the url. For doing so, you need to replace https://something.googlevideo.com/ of the url by https://redirector.googlevideo.com/ and then add title parameter. This is how you can do it. Moreover, I am going to add a complete series on youtube regarding this at my channel https://www.youtube.com/myPHPnotes, you may check out the whole there. |
|
Moreover, this thing works only on bestvideo format. For others, you need to use url_encode etc things. |
Hello, Friends.
I am trying to fetch the URL of a video via --get-url and it is giving me a URL looks like
https://r15---sn-4g57knlz.googlevideo.com/videoplayback?expire=1497021992&keepalive=yes&mv=m&mt=1497000273&ms=au&ei=yGk6WcLjCNqw8wSimYHgCQ&mn=sn-4g57knlz&mm=31&ipbits=0&requiressl=yes&itag=134&source=youtube&id=o-AG-urEi46umUqTe6H5w-0ZrCiqgqNw6bwDggUMhFUbEL&lmt=1496955572204598&dur=203.786&ip=167.114.210.100&key=yt6&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&mime=video%2Fmp4&pl=25&gir=yes&initcwndbps=772500&clen=3330292&signature=4AE80109039EC8BD9B08120A1A5A1FFD0C7EA6A3.5430E1D3818868AC98DC4AEBC1080BB264913360&ratebypass=yes
when i try to download it, its filename is videoplayback.mp4
what I need is the file I download is videotitle.mp4
I have seen various other sites which do so by adding a &title= attribute into the URL. But in this case, this is not working.
Hope this question is worth asking. Please help me out.