mirror of https://github.com/mpv-player/mpv
ytdl_hook: fix audio not being picked up for some sites
(cherry picked from commit 9dbab9661c
)
This commit is contained in:
parent
a8a4c7def7
commit
0f7b08b0fc
|
@ -314,8 +314,8 @@ local function add_single_video(json)
|
|||
if track.vcodec and track.vcodec ~= "none" then
|
||||
-- video track
|
||||
streamurl = edl_track or track.url
|
||||
elseif track.acodec and track.acodec ~= "none" and track.vcodec == "none" then
|
||||
-- audio track
|
||||
elseif track.vcodec == "none" then
|
||||
-- according to ytdl, if vcodec is None, it's audio
|
||||
mp.commandv("audio-add",
|
||||
edl_track or track.url, "auto",
|
||||
track.format_note or "")
|
||||
|
|
Loading…
Reference in New Issue