diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2018-01-29 21:39:12 +0000 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@gmail.com> | 2018-01-29 21:39:12 +0000 |
commit | 93403b13a45cd29e6a919363653b9e5f47eaa639 (patch) | |
tree | bb655af58f4e35e39e8e98d9dada5b4b16b5e69b /player/lua | |
parent | 2a0f9fc1588d8bda51a6340197c54285f3f62755 (diff) | |
download | mpv-93403b13a45cd29e6a919363653b9e5f47eaa639.tar.bz2 mpv-93403b13a45cd29e6a919363653b9e5f47eaa639.tar.xz |
ytdl_hook: pre-append id-only playlist items with shortened youtube URL
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/ytdl_hook.lua | 2 |
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 |