Remove debug print
This commit is contained in:
parent
cccc793a66
commit
79789a8099
|
@ -53,7 +53,6 @@ function file_loaded()
|
||||||
local video_path = mp.get_property("path")
|
local video_path = mp.get_property("path")
|
||||||
local video_title = mp.get_property("media-title")
|
local video_title = mp.get_property("media-title")
|
||||||
youtube_id = string.match(video_title, ".* %(([%w-_]+)%)")
|
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
|
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)
|
youtube_id = string.sub(youtube_id, 1, 11)
|
||||||
|
|
||||||
|
|
Reference in New Issue