[vlc-devel] commit: appletrailers.lua: trailers come from http://www nowdays ( Ilkka Ollakka )

git version control git at videolan.org
Tue Oct 6 22:05:44 CEST 2009


vlc | branch: 1.0-bugfix | Ilkka Ollakka <ileoo at videolan.org> | Tue Oct  6 16:17:26 2009 +0300| [c1316980f14973b5119027206d1e07692a1bdde3] | committer: Ilkka Ollakka 

appletrailers.lua: trailers come from http://www nowdays

Even if url points to http://movies.apple.com/..., working
url for vlc is http://www.apple.com/...
(cherry picked from commit 04a890862d17a41d65a16aea5ae03b64e0194276)

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

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

diff --git a/share/lua/playlist/appletrailers.lua b/share/lua/playlist/appletrailers.lua
index 7544255..c2fa431 100644
--- a/share/lua/playlist/appletrailers.lua
+++ b/share/lua/playlist/appletrailers.lua
@@ -40,6 +40,7 @@ function parse()
         if not line then break end
         for path in string.gmatch( line, "http://movies.apple.com/movies/.-%.mov" ) do
             path = vlc.strings.decode_uri( path )
+            path = string.gsub( path, "http://movies", "http://www" )
             if string.match( path, "320" ) then
                 extraname = " (320p)"
             elseif string.match( path, "480" ) then




More information about the vlc-devel mailing list