aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
diff options
context:
space:
mode:
authorGravatar Ricardo Constantino <wiiaboo@gmail.com>2018-01-11 00:15:58 +0000
committerGravatar Ricardo Constantino <wiiaboo@gmail.com>2018-01-11 00:16:53 +0000
commit154ff98128f38ff9f7ac2139013e80004b2aeb8e (patch)
tree76e6bce00bcfb8f64157c15cb01d3c4777a87d6f /player/lua
parent0a406f97e09ae81ac376fb8438f92bf50785c4cf (diff)
ytdl_hook: don't try to use webpage_url if non-existent
Diffstat (limited to 'player/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 448c2083f9..cc060cdcb8 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -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