ytdl_hook: add additional check for comedycentral urls

If this breaks another site again, remove this whole if and just leave them as
separate playlist items.

Close #5364
This commit is contained in:
Ricardo Constantino 2018-01-06 18:22:08 +00:00
parent 1eec7d2315
commit 442ff93626
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531
1 changed files with 2 additions and 1 deletions

View File

@ -404,6 +404,7 @@ mp.add_hook("on_load_fail", 10, function ()
-- some funky guessing to detect multi-arc videos
if self_redirecting_url and #json.entries > 1
and json.entries[1].protocol == "m3u8_native"
and json.entries[1].url then
msg.verbose("multi-arc video detected, building EDL")
@ -449,7 +450,7 @@ mp.add_hook("on_load_fail", 10, function ()
end
end
elseif self_redirecting_url then
elseif self_redirecting_url and #json.entries == 1 then
msg.verbose("Playlist with single entry detected.")
add_single_video(json.entries[1])
else