[vlc-commits] commit: lua: fix koreus parsing. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Jul 26 19:32:56 CEST 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 26 18:59:51 2010 +0200| [8c826f3940e2af2001bd666febe69173792ee065] | committer: Rémi Duraffort
lua: fix koreus parsing.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c826f3940e2af2001bd666febe69173792ee065
---
share/lua/playlist/koreus.lua | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/share/lua/playlist/koreus.lua b/share/lua/playlist/koreus.lua
index 66e7c7a..9b0a1bf 100644
--- a/share/lua/playlist/koreus.lua
+++ b/share/lua/playlist/koreus.lua
@@ -47,11 +47,9 @@ function parse()
_,_,arturl = string.find( line, "href=\"(.-)\"" )
end
- if string.match( line, "videoDiv\"%)%.innerHTML" ) then
- vid_url = string.match( line, '(http://media%d?%.koreus%.com/%d+/%d+/[%w-]*%.mp4)' )
- if vid_url then
- return { { path = vid_url; name = name; description = description; artist = artist; arturl = arturl } }
- end
+ vid_url = string.match( line, '(http://media%d?%.koreus%.com/%d+/%d+/[%w-]*%.mp4)' )
+ if vid_url then
+ return { { path = vid_url; name = name; description = description; artist = artist; arturl = arturl } }
end
end
end
More information about the vlc-commits
mailing list