[vlc-commits] commit: lua: fix koreus parsing. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Tue Jul 27 22:52:00 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 26 18:59:51 2010 +0200| [bbe7d941884920f303d7db903a97c070d418db4c] | committer: Rémi Duraffort 

lua: fix koreus parsing.
(cherry picked from commit 8c826f3940e2af2001bd666febe69173792ee065)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=bbe7d941884920f303d7db903a97c070d418db4c
---

 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