From 80d2016075083c0183d83dacc25627fd4cc3a1de Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Jan 2019 14:29:34 +0100 Subject: ytdl_hook: audio can use fragmented DASH too Otherwise we'd just use the base URL as media URL, which would fail with a 404 error. Not sure if there's a deeper reason why the audio path was explicitly different from the video one. But this actually works now for a video that returned fragmented DASH audio with the default format selection. (This affects streams on that well known site of a big evil Silicon Valley company. Typically happens after live stream gets converted to a normal video, though after some time passes, this fragmented version is deleted, and replaced by a non-fragmented one. I've observed this several times and this seems to be the "normal" behavior.) --- player/lua/ytdl_hook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/lua/ytdl_hook.lua') diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 7a6bb170c6..a6b9456001 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -318,7 +318,7 @@ local function add_single_video(json) streams[#streams + 1] = edl_track or track.url elseif track.vcodec == "none" then -- audio track - streams[#streams + 1] = track.url + streams[#streams + 1] = edl_track or track.url end end -- cgit v1.2.3