vlc/vlc-1.1 | branch: master | Rémi Duraffort <[email protected]> | Tue Aug 17 21:45:27 2010 +0200| [ca4319fd3dccb7e501033ac88e4442367301e498] | committer: Jean-Baptiste Kempf
lua_playlist: improve jamendo matching test. (cherry picked from commit 252c7cf3f951c1d5043f10a97f0eaa71ed62a0f9) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ca4319fd3dccb7e501033ac88e4442367301e498 --- share/lua/playlist/jamendo.lua | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/share/lua/playlist/jamendo.lua b/share/lua/playlist/jamendo.lua index 647870a..473d01c 100644 --- a/share/lua/playlist/jamendo.lua +++ b/share/lua/playlist/jamendo.lua @@ -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() _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
