[vlc-devel] commit: Dailymotion: fix for other domains and description parsing ( Fabio Ritrovato )

git version control git at videolan.org
Tue Jul 21 12:34:18 CEST 2009


vlc | branch: master | Fabio Ritrovato <exsephiroth87 at gmail.com> | Tue Jul 21 12:19:53 2009 +0200| [6d5cb64b3f15494acb43f48e5152d1a9b113f008] | committer: Jean-Baptiste Kempf 

Dailymotion: fix for other domains and description parsing

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 share/lua/playlist/dailymotion.lua |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua
index f4545c6..eb6fb9d 100644
--- a/share/lua/playlist/dailymotion.lua
+++ b/share/lua/playlist/dailymotion.lua
@@ -24,7 +24,7 @@
 -- Probe function.
 function probe()
     return vlc.access == "http"
-        and string.match( vlc.path, "dailymotion.com" ) 
+        and string.match( vlc.path, "dailymotion." ) 
         and string.match( vlc.peek( 2048 ), "<!DOCTYPE.*video_type" )
 end
 
@@ -85,7 +85,7 @@ function parse()
         end
         if string.match( line, "<meta name=\"description\"" )
         then
-            description = vlc.strings.resolve_xml_special_chars( find( line, "name=\"description\" content=\"(.-)\"" ) )
+            description = vlc.strings.resolve_xml_special_chars( find( line, "name=\"description\" lang=\".-\" content=\"(.-)\"" ) )
         end
         if path and name and description and arturl then break end
     end




More information about the vlc-devel mailing list