]> git.sesse.net Git - vlc/commitdiff
appletrailers.lua: trailers come from http://www nowdays
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 6 Oct 2009 13:17:26 +0000 (16:17 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 6 Oct 2009 13:21:00 +0000 (16:21 +0300)
Even if url points to http://movies.apple.com/..., working
url for vlc is http://www.apple.com/...

share/lua/playlist/appletrailers.lua

index 754425533adce83e066185c3dbefaf3aec1b63bd..c2fa43100d00a63cc27442761819712b09fa26a4 100644 (file)
@@ -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