Commit ca4319fd authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

lua_playlist: improve jamendo matching test.

(cherry picked from commit 252c7cf3)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4b5cdbb7
......@@ -25,15 +25,12 @@ require "simplexml"
-- Probe function.
function probe()
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
-- Parse function.
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 = ""
while true do
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