diff options
author | wm4 <wm4@nowhere> | 2015-01-24 20:54:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-24 20:54:35 +0100 |
commit | 047788e3b1354562f99ce8dacdba1972ad990d03 (patch) | |
tree | 396ebaf19f0fa19a345852bfb2b8b0104b7ca240 /libmpv/opengl_cb.h | |
parent | 13e35730b49a74ee80de7310378f88c256150cf4 (diff) | |
download | mpv-047788e3b1354562f99ce8dacdba1972ad990d03.tar.bz2 mpv-047788e3b1354562f99ce8dacdba1972ad990d03.tar.xz |
ytdl: implement user-agent and cookie overrides
For some sites, youtube-dl sends a special user-agent. If we don't send
the same user-agent, the server will reject mpv's connection attempt.
This was observed with trailers.apple.com. Fix it by forcing the
user-agent youtube-dl uses.
Some sites set cookies when doing a website access, and require the
client to provide these cookies when downloading the actual media. This
is needed at least by nicovideo.jp. Fix by adding youtube-dl's cookies
to our request headers.
Both of these require a very recent youtube-dl version (youtube-dl added
the necessary headers a few hours ago). The script still works with
older youtube-dl versions, though.
Diffstat (limited to 'libmpv/opengl_cb.h')
0 files changed, 0 insertions, 0 deletions