Commit 8301e1ea authored by Francois Cartegnie's avatar Francois Cartegnie

lua: meta: add descriptor/scope

parent 3391ffb1
......@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function descriptor()
return { scope="network" }
end
function try_query(mbid)
local relquery = "http://mb.videolan.org/ws/2/release/" .. mbid
local s = vlc.stream( relquery )
......
......@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function descriptor()
return { scope="network" }
end
-- Return the artwork
function fetch_art()
if vlc.item == nil then return nil end
......
......@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function descriptor()
return { scope="network" }
end
-- Return the artwork
function fetch_art()
local urlsForChannel = {
......
......@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function descriptor()
return { scope="network" }
end
-- Return the artwork
function fetch_art()
if vlc.item == nil then return nil end
......
......@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function descriptor()
return { scope="network" }
end
-- Replace non alphanumeric char by +
function get_query( title )
-- If we have a .EXT remove the extension.
......
......@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function descriptor()
return { scope="local" }
end
function trim (s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment