mpv/player/lua
wm4 047788e3b1 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.
2015-01-24 20:54:35 +01:00
..
assdraw.lua assdraw: Properly approximate circle for rounded box 2014-12-05 19:37:31 +01:00
defaults.lua options: deprecate 'lua' based options/dirs for 'script' 2014-12-15 04:39:56 +01:00
options.lua options: deprecate 'lua' based options/dirs for 'script' 2014-12-15 04:39:56 +01:00
osc.lua OSC: Reset all styles for idle message 2015-01-16 06:40:32 +01:00
ytdl_hook.lua ytdl: implement user-agent and cookie overrides 2015-01-24 20:54:35 +01:00