Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
252c7cf3
Commit
252c7cf3
authored
Aug 17, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua_playlist: improve jamendo matching test.
parent
f22fba29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
share/lua/playlist/jamendo.lua
share/lua/playlist/jamendo.lua
+2
-5
No files found.
share/lua/playlist/jamendo.lua
View file @
252c7cf3
...
@@ -25,15 +25,12 @@ require "simplexml"
...
@@ -25,15 +25,12 @@ require "simplexml"
-- Probe function.
-- Probe function.
function
probe
()
function
probe
()
return
vlc
.
access
==
"http"
return
vlc
.
access
==
"http"
and
string.match
(
vlc
.
path
,
"jamendo.com"
)
and
string.match
(
vlc
.
path
,
"jamendo.com/get2/"
)
and
string.match
(
vlc
.
path
,
"/track/xml/"
)
end
end
-- Parse function.
-- Parse function.
function
parse
()
function
parse
()
if
not
(
string.match
(
vlc
.
path
,
"jamendo.com/get2/"
)
and
string.match
(
vlc
.
path
,
"/track/xml/"
)
)
then
vlc
.
msg
.
err
(
"Jamendo URL not supported yet..."
)
return
{}
end
local
page
=
""
local
page
=
""
while
true
do
while
true
do
local
line
=
vlc
.
readline
()
local
line
=
vlc
.
readline
()
...
...
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