[vlc-commits] dailymotion.lua: partially decode video title and description

Pierre Ynard git at videolan.org
Sat Sep 17 21:57:21 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Sep 17 21:56:42 2011 +0200| [553fa2da4ecc8a55cbaaefdc6ad4ed2b3eb7f48f] | committer: Pierre Ynard

dailymotion.lua: partially decode video title and description

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

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

diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua
index 5a69d86..4af70f7 100644
--- a/share/lua/playlist/dailymotion.lua
+++ b/share/lua/playlist/dailymotion.lua
@@ -49,7 +49,13 @@ function parse()
 
             arturl = find( line, "\"videoPreviewURL\":\"([^\"]*)\"")
             name = find( line, "\"videoTitle\":\"([^\"]*)\"")
+            if name then
+                name = string.gsub( name, "+", " " )
+            end
             description = find( line, "\"videoDescription\":\"([^\"]*)\"")
+            if description then
+                description = string.gsub( description, "+", " " )
+            end
 
            --[[ we get a list of different streams available, at various codecs
                 and resolutions:



More information about the vlc-commits mailing list