summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-06-07 10:13:29 +0200
committerwm4 <wm4@nowhere>2015-06-07 23:53:13 +0200
commit69abb4819414a8f0a4e20812537112d72d9c04fb (patch)
treeab44a494fa0ccf223d643e735811db39c01c6907
parent92b27bec45fc3c0c198fd9e4829d19ffd9a89697 (diff)
downloadmpv-69abb4819414a8f0a4e20812537112d72d9c04fb.tar.bz2
mpv-69abb4819414a8f0a4e20812537112d72d9c04fb.tar.xz
ytdl_hook: Support 'multi_video' results
They can be handled by the same codes used for playlists, most of them will use an EDL. Fixes #2027.
-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 bcbb536426..967a20a226 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -144,7 +144,7 @@ mp.add_hook("on_load", 10, function ()
-- direct URL, nothing to do
msg.verbose("Got direct URL")
return
- elseif not (json["_type"] == nil) and (json["_type"] == "playlist") then
+ elseif not (json["_type"] == nil) and ((json["_type"] == "playlist") or (json["_type"] == "multi_video")) then
-- a playlist
if (#json.entries == 0) then