]> git.sesse.net Git - vlc/commitdiff
* dailymotion.lua: fix.
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 17 May 2007 23:27:38 +0000 (23:27 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 17 May 2007 23:27:38 +0000 (23:27 +0000)
share/luaplaylist/dailymotion.lua

index eb731ba27cff4aff273fb338c512e2e80a95c259..4f88816c45115eb4a44772cc30defee6444ed95a 100644 (file)
@@ -23,8 +23,8 @@ function parse()
         end ]]
         if string.match( line, "<meta name=\"description\"" )
         then
-            name = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"description\" content=\"Regarder (.*) sur Dailymotion Partagez Vos Videos\..*$", "%1" ) )
-            description = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"description\" content=\"Regarder .* sur Dailymotion Partagez Vos Videos\. ([^\"]*)\".*$", "%1" ) )
+            name = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"description\" content=\"%w+ (.*) %w+ %w+ %w+ %w+ Videos\..*$", "%1" ) )
+            description = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"description\" content=\"%w+ .* %w+ %w+ %w+ %w+ Videos\. ([^\"]*)\".*$", "%1" ) )
         end
         if string.match( line, "<link rel=\"thumbnail\"" )
         then