fixed initial cancel, ffmpeg marquee function
This commit is contained in:
parent
0b4ae76934
commit
c4fd0a3f91
25
mandy.lua
25
mandy.lua
@ -9,23 +9,31 @@ require('progress')
|
|||||||
require('ffmpeg_progress')
|
require('ffmpeg_progress')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--Main url entry box
|
--Main url entry box
|
||||||
function url_entry()
|
function url_entry()
|
||||||
|
|
||||||
res, url = iup.GetParam("Mandy 0.2 - Enter URL", nil,
|
res, url = iup.GetParam("Mandy 0.2 - Enter URL", nil,
|
||||||
"Enter Youtube URL: %s\n", "")
|
"Enter Youtube URL: %s\n", "")
|
||||||
if string.match(url, "youtube.com/watch") then
|
|
||||||
return url
|
if res == true then
|
||||||
|
if string.match(url, "youtube.com/watch") then
|
||||||
|
return url
|
||||||
|
|
||||||
|
else
|
||||||
|
iup.Message("Error", "The URL is not a youtube link")
|
||||||
|
iup.Flush()
|
||||||
|
iup.Close()
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
iup.Message("Error", "The URL is not a youtube link")
|
return false
|
||||||
iup.Flush()
|
|
||||||
iup.Close()
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -97,8 +105,9 @@ end
|
|||||||
function ffmpeg(tmpPath, dirD)
|
function ffmpeg(tmpPath, dirD)
|
||||||
|
|
||||||
local mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD
|
local mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD
|
||||||
os.execute(mp3)
|
--os.execute(mp3)
|
||||||
-- convert_mp3.go(mp3)
|
convert_mp3.go(mp3)
|
||||||
|
|
||||||
io.popen("vlc "..dirD)
|
io.popen("vlc "..dirD)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user