I'm developing an extension for vlc 1.1

Discuss your Lua playlist, album art and interface scripts.
marcoscarpetta
New Cone
New Cone
Posts: 5
Joined: 28 May 2010 16:18

I'm developing an extension for vlc 1.1

Postby marcoscarpetta » 28 May 2010 16:46

https://sourceforge.net/projects/vlc-videos-down/
What do you think about it?
this is the code:

Code: Select all

url = nil function descriptor() return { title = "Download videos from the web" ; version = "0.0.1" ; author = "Marco Scarpetta" ; url = 'http://vlc-videos-down.sourceforge.net'; shortdesc = "Download videos"; description = "<center><b>Download videos from the web</b></center><br />"; capabilities = { "input-listener" } } end function create_dialog() dlg = vlc.dialog("vlc download videos") dlg:add_label("Enter the URL of the video you want to download.", 1, 1, 4, 1) dlg:add_label("<b>URL:</b>", 1, 2, 1, 1) local item = vlc.input.item() url = dlg:add_text_input(item and item:name() or "", 2, 2, 1, 1) dlg:add_button("Download", download, 3, 2, 1, 1) --This will help to choose which format to save the video, but I do not know how it works --formato = d:add_dropdown() end function activate() create_dialog() end function close() vlc.deactivate() end --this is the most important function function download() --from the url it will download and save rhe video end

Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 3 guests