Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d38329b4
Commit
d38329b4
authored
Feb 22, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua SD: let the user know we are working
parent
6ebad9e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
share/lua/sd/fmc.lua
share/lua/sd/fmc.lua
+2
-0
share/lua/sd/freebox.lua
share/lua/sd/freebox.lua
+2
-0
share/lua/sd/icecast.lua
share/lua/sd/icecast.lua
+2
-0
No files found.
share/lua/sd/fmc.lua
View file @
d38329b4
...
...
@@ -26,6 +26,7 @@ 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
)
...
...
@@ -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
]
..
" OGG Podcast"
,
path
=
show_node
.
children_map
[
"podcastogg"
][
1
].
children
[
1
]}
)
end
vlc
.
sd
.
remove_item
(
loading
)
end
share/lua/sd/freebox.lua
View file @
d38329b4
...
...
@@ -30,6 +30,7 @@ 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"
}
...
...
@@ -48,4 +49,5 @@ function main()
end
line
=
fd
:
readline
()
end
vlc
.
sd
.
remove_item
(
loading
)
end
share/lua/sd/icecast.lua
View file @
d38329b4
...
...
@@ -26,6 +26,7 @@ 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
)
...
...
@@ -36,4 +37,5 @@ 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment