mirror of
https://github.com/videolan/vlc.git
synced 2024-12-11 18:54:36 +08:00
Lua SD: let the user know we are working
This commit is contained in:
parent
6ebad9e33d
commit
d38329b4db
@ -26,6 +26,7 @@ function descriptor()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function main()
|
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")
|
local tree = simplexml.parse_url("http://www.archive.org/download/freemusiccharts.songs/fmc.xml")
|
||||||
for _, show_node in ipairs( tree.children ) do
|
for _, show_node in ipairs( tree.children ) do
|
||||||
simplexml.add_name_maps( show_node )
|
simplexml.add_name_maps( show_node )
|
||||||
@ -52,4 +53,5 @@ 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] .. " 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]} )
|
node:add_subitem( {title=show_node.children_map["date"][1].children[1] .. " OGG Podcast",path=show_node.children_map["podcastogg"][1].children[1]} )
|
||||||
end
|
end
|
||||||
|
vlc.sd.remove_item( loading )
|
||||||
end
|
end
|
||||||
|
@ -30,6 +30,7 @@ function main()
|
|||||||
if line ~= "#EXTM3U" then
|
if line ~= "#EXTM3U" then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
|
||||||
line = fd:readline()
|
line = fd:readline()
|
||||||
local duration, artist, name
|
local duration, artist, name
|
||||||
local options={"deinterlace=1"}
|
local options={"deinterlace=1"}
|
||||||
@ -48,4 +49,5 @@ function main()
|
|||||||
end
|
end
|
||||||
line = fd:readline()
|
line = fd:readline()
|
||||||
end
|
end
|
||||||
|
vlc.sd.remove_item( loading )
|
||||||
end
|
end
|
||||||
|
@ -26,6 +26,7 @@ function descriptor()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
|
local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
|
||||||
local tree = simplexml.parse_url("http://dir.xiph.org/yp.xml")
|
local tree = simplexml.parse_url("http://dir.xiph.org/yp.xml")
|
||||||
for _, station in ipairs( tree.children ) do
|
for _, station in ipairs( tree.children ) do
|
||||||
simplexml.add_name_maps( station )
|
simplexml.add_name_maps( station )
|
||||||
@ -36,4 +37,5 @@ function main()
|
|||||||
meta={["Icecast"]={["Bitrate"]=station.children_map["bitrate"][1].children[1];
|
meta={["Icecast"]={["Bitrate"]=station.children_map["bitrate"][1].children[1];
|
||||||
["Server type"]=station.children_map["server_type"][1].children[1]}}} )
|
["Server type"]=station.children_map["server_type"][1].children[1]}}} )
|
||||||
end
|
end
|
||||||
|
vlc.sd.remove_item( loading )
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user