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

Pass useragent settings to curl #12325

Closed
KOLANICH opened this issue Mar 2, 2017 · 1 comment
Closed

Pass useragent settings to curl #12325

KOLANICH opened this issue Mar 2, 2017 · 1 comment
Labels

Comments

@KOLANICH
Copy link

@KOLANICH KOLANICH commented Mar 2, 2017

For now useragent is not passed to curl. I guess it'd be logical to pass it.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 2, 2017

> py -3.6 .\youtube_dl\__main__.py BaW_jenozKc -f best --external-downloader curl -v --add-header User-Agent:Foobar
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['BaW_jenozKc', '-f', 'best', '--external-downloader', 'curl', '-v', '--add-header', 'User-Agent:Foobar']
[debug] Adding header from command line option User-Agent:Foobar
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, pref cp1251
[debug] youtube-dl version 2017.02.28
[debug] Git HEAD: 11bb6ad
[debug] Python version 3.6.0 - Windows-10-10.0.10240-SP0
[debug] exe versions: ffmpeg N-83622-gdcd3418, ffprobe N-83622-gdcd3418, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[youtube] BaW_jenozKc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r3---sn-ug5onuxaxjvh-v8cl.googlevideo.com/videoplayback?...'
[download] Destination: youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4
[debug] curl command line: curl --location -o 'youtube-dl test video '"'"''"'"'_ä↭𝕐-BaW_jenozKc.mp4.part' --header 'User-Agent: Foobar' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --continue-at - --verbose --retry 10 -- 'https://r3---sn-ug5onuxaxjvh-v8cl.googlevideo.com/videoplayback?...'

[debug] curl command line: curl --location -o 'youtube-dl test video '"'"''"'"'_ä↭𝕐-BaW_jenozKc.mp4.part' --header 'User-Agent: Foobar' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --continue-at - --verbose --retry 10 -- 'https://r3---sn-ug5onuxaxjvh-v8cl.googlevideo.com/videoplayback?...'

--header 'User-Agent: Foobar'

@dstftw dstftw closed this Mar 2, 2017
@dstftw dstftw added the invalid label Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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