Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
84f6eb34
Commit
84f6eb34
authored
Feb 20, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua SD: implement the descriptor() function in scripts
parent
87151c41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
share/lua/sd/fmc.lua
share/lua/sd/fmc.lua
+4
-1
share/lua/sd/freebox.lua
share/lua/sd/freebox.lua
+4
-1
share/lua/sd/frenchtv.lua
share/lua/sd/frenchtv.lua
+4
-1
No files found.
share/lua/sd/fmc.lua
View file @
84f6eb34
--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
...
...
share/lua/sd/freebox.lua
View file @
84f6eb34
--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
()
...
...
share/lua/sd/frenchtv.lua
View file @
84f6eb34
--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"
}}
)
...
...
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