From a957114421fd2e875432e5fde0448ffc1ae60cfd Mon Sep 17 00:00:00 2001 From: Kelly Anderson Date: Thu, 5 Jan 2012 06:23:35 -0700 Subject: [PATCH] Cleanup lua script escape sequences for lua 5.2. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Converting \ to %, since 5.2 no longer accepts \. Signed-off-by: Rémi Denis-Courmont --- share/lua/extensions/imdb.lua | 2 +- share/lua/playlist/appletrailers.lua | 6 +++--- share/lua/playlist/extreme.lua | 10 +++++----- share/lua/playlist/katsomo.lua | 2 +- share/lua/playlist/mpora.lua | 4 ++-- share/lua/playlist/pinkbike.lua | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/share/lua/playlist/appletrailers.lua b/share/lua/playlist/appletrailers.lua index 8bd4bea..4d0f5e7 100644 --- a/share/lua/playlist/appletrailers.lua +++ b/share/lua/playlist/appletrailers.lua @@ -67,7 +67,7 @@ function parse() description = find( line, "h%d.->(.-)([^<]+)([^<]+)" ) end if string.match( line, "video_src" ) then - _,_,video = string.find( line, "href=\"http://video\.mpora\.com/ep/(.*).swf\" />" ) + _,_,video = string.find( line, 'href="http://video%.mpora%.com/ep/(.*)%.swf" />' ) end end diff --git a/share/lua/playlist/pinkbike.lua b/share/lua/playlist/pinkbike.lua index 06105d7..f6787c8 100644 --- a/share/lua/playlist/pinkbike.lua +++ b/share/lua/playlist/pinkbike.lua @@ -45,10 +45,10 @@ function parse() end -- Try to find server which has our video if string.match( line, "