ytdl_hook: fix audio not being picked up for some sites

(cherry picked from commit 9dbab9661c)
This commit is contained in:
Ricardo Constantino 2018-08-17 19:17:30 +01:00 committed by Jan Ekström
parent a8a4c7def7
commit 0f7b08b0fc
1 changed files with 2 additions and 2 deletions

View File

@ -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 "")