[vlc-commits] commit: lua_playlist: improve jamendo matching test. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Tue Aug 17 21:45:49 CEST 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 17 21:45:27 2010 +0200| [252c7cf3f951c1d5043f10a97f0eaa71ed62a0f9] | committer: Rémi Duraffort
lua_playlist: improve jamendo matching test.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=252c7cf3f951c1d5043f10a97f0eaa71ed62a0f9
---
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()
More information about the vlc-commits
mailing list