X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=share%2Flua%2Fplaylist%2Fappletrailers.lua;h=0509d8f50ce501ad6624ac3927fd888125b53381;hb=8a16cc00967f87fe3344c40d86f5db29f2bcbbbb;hp=5a754aea1e397628f555f6805a4ab7a9e2a61bdc;hpb=326015842fbb404a7d947d1d7cdeb64fe879b69c;p=vlc diff --git a/share/lua/playlist/appletrailers.lua b/share/lua/playlist/appletrailers.lua index 5a754aea1e..0509d8f50c 100644 --- a/share/lua/playlist/appletrailers.lua +++ b/share/lua/playlist/appletrailers.lua @@ -37,9 +37,9 @@ function parse() or string.match( line, "http://images.apple.com/movies/.*%.mov" ) then if string.match( line, "http://movies.apple.com/movies/.*%.mov" ) then - path = vlc.decode_uri( string.gsub( line, "^.*(http://movies.apple.com/movies/.*%.mov).*$", "%1" ) ) + path = vlc.strings.decode_uri( string.gsub( line, "^.*(http://movies.apple.com/movies/.*%.mov).*$", "%1" ) ) elseif string.match( line, "http://images.apple.com/movies/.*%.mov" ) then - path = vlc.decode_uri( string.gsub( line, "^.*(http://images.apple.com/movies/.*%.mov).*$", "%1" ) ) + path = vlc.strings.decode_uri( string.gsub( line, "^.*(http://images.apple.com/movies/.*%.mov).*$", "%1" ) ) end if string.match( path, "480p" ) then extraname = " (480p)" @@ -54,11 +54,11 @@ function parse() end if string.match( line, "" ) then - title = vlc.decode_uri( string.gsub( line, "^.*<title>([^<]*).*$", "%1" ) ) + title = vlc.strings.decode_uri( string.gsub( line, "^.*<title>([^<]*).*$", "%1" ) ) end if string.match( line, "<meta name=\"Description\"" ) then - description = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"Description\" content=\"([^\"]*)\".*$", "%1" ) ) + description = vlc.strings.resolve_xml_special_chars( string.gsub( line, "^.*name=\"Description\" content=\"([^\"]*)\".*$", "%1" ) ) end end return p