Commit 252c7cf3 authored by Rémi Duraffort's avatar Rémi Duraffort

lua_playlist: improve jamendo matching test.

parent f22fba29
...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment