vlc | branch: master | Pierre Ynard <[email protected]> | 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: _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
