]> git.sesse.net Git - vlc/commitdiff
Lua SD: implement the descriptor() function in scripts
authorFabio Ritrovato <sephiroth87@videolan.org>
Sat, 20 Feb 2010 13:20:42 +0000 (14:20 +0100)
committerFabio Ritrovato <sephiroth87@videolan.org>
Sat, 20 Feb 2010 13:20:42 +0000 (14:20 +0100)
share/lua/sd/fmc.lua
share/lua/sd/freebox.lua
share/lua/sd/frenchtv.lua

index ffcebf86eea60020b23d492a7e57496704bc6db9..e7ae57f2866cc925f62506d1c57a2be7746328d7 100644 (file)
@@ -1,4 +1,3 @@
---SD_Description=Free Music Charts
 --[[
  $Id$
 
 --]]
 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
index ea0e1796db36d8b51ca665ed12dd963a879de491..849217ac54c72e349030b72df6e4238bcc746bb0 100644 (file)
@@ -1,4 +1,3 @@
---SD_Description=Freebox TV
 --[[
  $Id$
 
  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()
index bd96c9facfea0c836eb01cfa3bd4026e3284b17c..bda07b1569d0d606aeded26664e2613ec6fa6a00 100644 (file)
@@ -1,4 +1,3 @@
---SD_Description=French TV
 --[[
  $Id$
 
  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"}} )