mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 19:22:48 +00:00
ytdl_hook: strip quotes from cookie values
This commit is contained in:
parent
7c70df0934
commit
e78e2c73cf
@ -180,7 +180,7 @@ end
|
||||
local function serialize_cookies_for_avformat(cookies)
|
||||
local result = ''
|
||||
for _, cookie in pairs(cookies) do
|
||||
local cookie_str = ('%s=%s; '):format(cookie.name, cookie.value)
|
||||
local cookie_str = ('%s=%s; '):format(cookie.name, cookie.value:gsub('^"(.+)"$', '%1'))
|
||||
for k, v in pairs(cookie) do
|
||||
if k ~= "name" and k ~= "value" then
|
||||
cookie_str = cookie_str .. ('%s=%s; '):format(k, v)
|
||||
|
Loading…
Reference in New Issue
Block a user