mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 05:22:23 +00:00
ytdl_hook: don't preappend ytdl:// to non-youtube links in playlists
Close #5003
This commit is contained in:
parent
29af787217
commit
1623430b20
@ -475,7 +475,11 @@ mp.add_hook("on_load", 10, function ()
|
||||
site = entry["webpage_url"]
|
||||
end
|
||||
|
||||
playlist = playlist .. "ytdl://" .. site .. "\n"
|
||||
if not (site:find("https?://") == 1) then
|
||||
site = "ytdl://" .. site
|
||||
end
|
||||
playlist = playlist .. site .. "\n"
|
||||
|
||||
end
|
||||
|
||||
mp.set_property("stream-open-filename", "memory://" .. playlist)
|
||||
|
Loading…
Reference in New Issue
Block a user