summaryrefslogtreecommitdiffstats
path: root/player/lua/ytdl_hook.lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-01-05 14:29:34 +0100
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commit80d2016075083c0183d83dacc25627fd4cc3a1de (patch)
treecea5d4aa9cba2dcc0bbda8de340dddaf50fdcccf /player/lua/ytdl_hook.lua
parent5eb7b7eb044c250411aee722ea6657babbff5346 (diff)
downloadmpv-80d2016075083c0183d83dacc25627fd4cc3a1de.tar.bz2
mpv-80d2016075083c0183d83dacc25627fd4cc3a1de.tar.xz
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.)
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r--player/lua/ytdl_hook.lua2
1 files changed, 1 insertions, 1 deletions
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