]> git.sesse.net Git - vlc/commitdiff
lua_playlist: improve jamendo matching test.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 17 Aug 2010 19:45:27 +0000 (21:45 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 17 Aug 2010 19:45:27 +0000 (21:45 +0200)
share/lua/playlist/jamendo.lua

index 647870ab7fd4df7ae40241965aaf9de3e620bf4b..473d01c0fa887d1909137ed52762e49f481bb86a 100644 (file)
@@ -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()