Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Youtube video but "videoplayback.mp4" name #12481

Closed
mdmrcglu opened this issue Mar 18, 2017 · 3 comments
Closed

Download Youtube video but "videoplayback.mp4" name #12481

mdmrcglu opened this issue Mar 18, 2017 · 3 comments

Comments

@mdmrcglu
Copy link

@mdmrcglu mdmrcglu commented Mar 18, 2017

Hello
I'm genarete video source via youtube-dl app and add &title option to source url.

Exp: http://x.googlevideo.com/xx.mp4&blabla&title=MY_NEW_TITLE
Enter video source url on my pc with chrome and save as video.
Always always download name "videoplayback.mp4".

https://github.com/jeckman/YouTube-Downloader
This php script this style working and download with &title= name.
Thank you for Youtube-dl.
Best app for all timesé!

How to solution this ?
The reason for the difference between these two applications ?

using
"#root youtube-dl -g -f 18 b3HeLs8Yosw‎"

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 18, 2017

You are not allowed to modify final download URL otherwise there are no guarantees it will work. You also not guaranteed this will work this way at all since download request should come from the same IP with the same HTTP headers.

@dstftw dstftw closed this Mar 18, 2017
@AdnanHussainTurki
Copy link

@AdnanHussainTurki AdnanHussainTurki commented Jun 20, 2017

Actually, you can.

Watch this : https://www.youtube.com/watch?v=XKUEvqOwgdc

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 20, 2017

That say - using Content-Disposition header is out of the scope of youtube-dl as the latter handles filenames on its own. If you want to see a friendly filename in browsers, a way is writing a wrapper around youtube-dl. As mentioned above, you take the risk of invalidate final URLs.

For further discussions, please move to #13325.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.