]> git.sesse.net Git - vlc/commitdiff
Revert "Lua SD: let the user know we are working"
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 5 Mar 2010 00:27:07 +0000 (01:27 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 5 Mar 2010 10:06:26 +0000 (11:06 +0100)
This reverts commit d38329b4dbcc1901e2f3ac147e1dd0697a174a7e.

This is reverted because it is a hack.

share/lua/sd/fmc.lua
share/lua/sd/freebox.lua
share/lua/sd/icecast.lua

index 7be1c8ea0ad5fa69f22baee7b8ede333e0997da8..830a022054fe051344e24e845f2f479e38891580 100644 (file)
@@ -26,7 +26,6 @@ function descriptor()
 end
 
 function main()
-    local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
     local tree = simplexml.parse_url("http://www.archive.org/download/freemusiccharts.songs/fmc.xml")
     for _, show_node in ipairs( tree.children ) do
         simplexml.add_name_maps( show_node )
@@ -53,5 +52,4 @@ function main()
         node:add_subitem( {title=show_node.children_map["date"][1].children[1] .. " MP3 Podcast",path=show_node.children_map["podcastmp3"][1].children[1]} )
         node:add_subitem( {title=show_node.children_map["date"][1].children[1] .. " OGG Podcast",path=show_node.children_map["podcastogg"][1].children[1]} )
     end
-    vlc.sd.remove_item( loading )
 end
index 0ba209ba6b063877eef6062ecb4f1da025611027..a908648ef08f8e11fe45ba6af32bf8bc67fec409 100644 (file)
@@ -34,7 +34,6 @@ function main()
     if line ~= "#EXTM3U" then
         return nil
     end
-    local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
     line = fd:readline()
     local duration, artist, name
     local options={"deinterlace=1"}
@@ -53,5 +52,4 @@ function main()
         end
         line = fd:readline()
     end
-    vlc.sd.remove_item( loading )
 end
index ad487434bbd0b514fb23eafbed3fd790753274f9..2bfbfc26cf084f6faaecfa90f218b14ac4916fcd 100644 (file)
@@ -26,7 +26,6 @@ function descriptor()
 end
 
 function main()
-    local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
     local tree = simplexml.parse_url("http://dir.xiph.org/yp.xml")
     for _, station in ipairs( tree.children ) do
         simplexml.add_name_maps( station )
@@ -37,5 +36,4 @@ function main()
                           meta={["Icecast"]={["Bitrate"]=station.children_map["bitrate"][1].children[1];
                                              ["Server type"]=station.children_map["server_type"][1].children[1]}}} )
     end
-    vlc.sd.remove_item( loading )
 end