1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

ytdl_hook: don't try to use webpage_url if non-existent

This commit is contained in:
Ricardo Constantino 2018-01-11 00:15:58 +00:00
parent 0a406f97e0
commit 154ff98128
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

View File

@ -472,7 +472,7 @@ mp.add_hook(o.try_ytdl_first and "on_load" or "on_load_fail", 10, function ()
we want, but only if we aren't going to trigger an
infinite loop
--]]
if not self_redirecting_url then
if entry["webpage_url"] and not self_redirecting_url then
site = entry["webpage_url"]
end