|
|
|
@ -53,7 +53,6 @@ function file_loaded()
|
|
|
|
|
local video_path = mp.get_property("path")
|
|
|
|
|
local video_title = mp.get_property("media-title")
|
|
|
|
|
youtube_id = string.match(video_title, ".* %(([%w-_]+)%)")
|
|
|
|
|
print(youtube_id)
|
|
|
|
|
if not string.match(video_path, "https?://.*%.?googlevideo%.com/.*") or not youtube_id or string.len(youtube_id) < 11 then return end
|
|
|
|
|
youtube_id = string.sub(youtube_id, 1, 11)
|
|
|
|
|
|
|
|
|
|