[vlc-devel] commit: Lua SD: implement the descriptor() function in scripts ( Fabio Ritrovato )
git version control
git at videolan.org
Sat Feb 20 14:26:05 CET 2010
vlc | branch: master | Fabio Ritrovato <sephiroth87 at videolan.org> | Sat Feb 20 14:20:42 2010 +0100| [84f6eb34ae635f3909f3fb423ec54c4cb9c59b95] | committer: Fabio Ritrovato
Lua SD: implement the descriptor() function in scripts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=84f6eb34ae635f3909f3fb423ec54c4cb9c59b95
---
share/lua/sd/fmc.lua | 5 ++++-
share/lua/sd/freebox.lua | 5 ++++-
share/lua/sd/frenchtv.lua | 5 ++++-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/share/lua/sd/fmc.lua b/share/lua/sd/fmc.lua
index ffcebf8..e7ae57f 100644
--- a/share/lua/sd/fmc.lua
+++ b/share/lua/sd/fmc.lua
@@ -1,4 +1,3 @@
---SD_Description=Free Music Charts
--[[
$Id$
@@ -22,6 +21,10 @@
--]]
require "simplexml"
+function descriptor()
+ return { title="Free Music Charts" }
+end
+
function main()
local tree = simplexml.parse_url("http://www.archive.org/download/freemusiccharts.songs/fmc.xml")
for _, show_node in ipairs( tree.children ) do
diff --git a/share/lua/sd/freebox.lua b/share/lua/sd/freebox.lua
index ea0e179..849217a 100644
--- a/share/lua/sd/freebox.lua
+++ b/share/lua/sd/freebox.lua
@@ -1,4 +1,3 @@
---SD_Description=Freebox TV
--[[
$Id$
@@ -21,6 +20,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
+function descriptor()
+ return { title="Freebox TV" }
+end
+
function main()
local fd = vlc.stream( "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" )
local line= fd:readline()
diff --git a/share/lua/sd/frenchtv.lua b/share/lua/sd/frenchtv.lua
index bd96c9f..bda07b1 100644
--- a/share/lua/sd/frenchtv.lua
+++ b/share/lua/sd/frenchtv.lua
@@ -1,4 +1,3 @@
---SD_Description=French TV
--[[
$Id$
@@ -21,6 +20,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
+function descriptor()
+ return { title="French TV" }
+end
+
function main()
node = vlc.sd.add_node( {title="Canal +"} )
node:add_subitem( {title="Le SAV des émissions ",url="http://www.canalplus.fr/index.php?pid=1782",options={"http-forward-cookies"}} )
More information about the vlc-devel
mailing list