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"
-- 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