summaryrefslogtreecommitdiffstats
path: root/video/out/vo_direct3d.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-24 20:54:35 +0100
committerwm4 <wm4@nowhere>2015-01-24 20:54:35 +0100
commit047788e3b1354562f99ce8dacdba1972ad990d03 (patch)
tree396ebaf19f0fa19a345852bfb2b8b0104b7ca240 /video/out/vo_direct3d.c
parent13e35730b49a74ee80de7310378f88c256150cf4 (diff)
downloadmpv-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 'video/out/vo_direct3d.c')
0 files changed, 0 insertions, 0 deletions