mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
92b27bec45
commit
69abb48194
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue