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

git version control git at videolan.org
Tue Jul 21 12:39:08 CEST 2009


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

Dailymotion: fix for other domains and description parsing

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 6d5cb64b3f15494acb43f48e5152d1a9b113f008)

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

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

 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