From: Ilkka Ollakka Date: Thu, 22 Apr 2010 10:39:26 +0000 (+0300) Subject: appletrailer: fix adding those other hd-resolutions besides 480p X-Git-Tag: 1.2.0-pre1~6939 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=78973025e4065e463202e2c72d96dc1deb4d1dd1;p=vlc appletrailer: fix adding those other hd-resolutions besides 480p --- diff --git a/share/lua/playlist/appletrailers_iphone.lua b/share/lua/playlist/appletrailers_iphone.lua index 0363d4c0b7..0edab6c2e0 100644 --- a/share/lua/playlist/appletrailers_iphone.lua +++ b/share/lua/playlist/appletrailers_iphone.lua @@ -59,8 +59,8 @@ function parse() end end for index,resolution in ipairs({"480p","720p","1080p"}) do - path = string.gsub( path, "r320i.mov","h"..resolution..".mov") - table.insert( p, { path=path; name=title.." ("..resolution..")"; arturl=arturl; description=description; options={":http-user-agent=Quicktime/7.2.0 vlc lua edition",":input-fast-seek",":play-and-stop"};} ) + locationurl = string.gsub( path, "r320i.mov","h"..resolution..".mov") + table.insert( p, { path=locationurl ; name=title.." ("..resolution..")"; arturl=arturl; description=description; options={":http-user-agent=Quicktime/7.2.0 vlc lua edition",":input-fast-seek",":play-and-stop"};} ) end return p end