fix ytdl:// urls
This commit is contained in:
parent
e68fed22ad
commit
b71beb60eb
@ -78,10 +78,13 @@ function file_loaded()
|
|||||||
local video_referer = string.match(mp.get_property("http-header-fields", ""), "Referer:([^,]+)") or ""
|
local video_referer = string.match(mp.get_property("http-header-fields", ""), "Referer:([^,]+)") or ""
|
||||||
|
|
||||||
local urls = {
|
local urls = {
|
||||||
|
"ytdl://youtu%.be/([%w-_]+).*",
|
||||||
|
"ytdl://w?w?w?%.?youtube%.com/v/([%w-_]+).*",
|
||||||
"https?://youtu%.be/([%w-_]+).*",
|
"https?://youtu%.be/([%w-_]+).*",
|
||||||
"https?://w?w?w?%.?youtube%.com/v/([%w-_]+).*",
|
"https?://w?w?w?%.?youtube%.com/v/([%w-_]+).*",
|
||||||
"/watch.*[?&]v=([%w-_]+).*",
|
"/watch.*[?&]v=([%w-_]+).*",
|
||||||
"/embed/([%w-_]+).*",
|
"/embed/([%w-_]+).*",
|
||||||
|
"^ytdl://([%w-_]+)$",
|
||||||
"-([%w-_]+)%."
|
"-([%w-_]+)%."
|
||||||
}
|
}
|
||||||
youtube_id = nil
|
youtube_id = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user