From 93403b13a45cd29e6a919363653b9e5f47eaa639 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Mon, 29 Jan 2018 21:39:12 +0000 Subject: ytdl_hook: pre-append id-only playlist items with shortened youtube URL --- player/lua/ytdl_hook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 18325066d4..a63aedbfd4 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -570,7 +570,7 @@ mp.add_hook(o.try_ytdl_first and "on_load" or "on_load_fail", 10, function () -- links with only youtube id as returned by --flat-playlist if not site:find("://") then - table.insert(playlist, "ytdl://" .. site) + table.insert(playlist, "https://youtu.be/" .. site) elseif url_is_safe(site) then table.insert(playlist, site) end -- cgit v1.2.3