summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2018-01-29 21:39:12 +0000
committerRicardo Constantino <wiiaboo@gmail.com>2018-01-29 21:39:12 +0000
commit93403b13a45cd29e6a919363653b9e5f47eaa639 (patch)
treebb655af58f4e35e39e8e98d9dada5b4b16b5e69b /player
parent2a0f9fc1588d8bda51a6340197c54285f3f62755 (diff)
downloadmpv-93403b13a45cd29e6a919363653b9e5f47eaa639.tar.bz2
mpv-93403b13a45cd29e6a919363653b9e5f47eaa639.tar.xz
ytdl_hook: pre-append id-only playlist items with shortened youtube URL
Diffstat (limited to 'player')
-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 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