[vlc-commits] commit: lua apple_iphone: strip " - .*" from title and change options ( Ilkka Ollakka )

git at videolan.org git at videolan.org
Sun May 16 21:27:07 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun May 16 22:24:16 2010 +0300| [6db40aa9998be5088a0b7b8c14fc38b9311afb31] | committer: Ilkka Ollakka 

lua apple_iphone: strip " - .*" from title and change options

add demux=avformat and play-and-pause, remove play-and-stop as it's
playlist-option not item. demux=avformat seems to help littlebit on
constant seeking (we don't want to dos as http-access closes and starts
new connection on seek currently ).

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

 share/lua/playlist/appletrailers_iphone.lua |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/lua/playlist/appletrailers_iphone.lua b/share/lua/playlist/appletrailers_iphone.lua
index 0edab6c..e72bbb3 100644
--- a/share/lua/playlist/appletrailers_iphone.lua
+++ b/share/lua/playlist/appletrailers_iphone.lua
@@ -52,6 +52,7 @@ function parse()
         if string.match( line, "<title>" )
         then
             title = vlc.strings.resolve_xml_special_chars( find( line, "<title>(.-)<" ) )
+            title = string.gsub( title, " %- .*", "" )
         end
         if string.match( line, "<meta name=\"Description\"" )
         then
@@ -60,7 +61,7 @@ function parse()
     end
     for index,resolution in ipairs({"480p","720p","1080p"}) do
         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"};} )
+        table.insert( p, { path=locationurl ; name=title.." ("..resolution..")"; arturl=arturl; description=description; options={":http-user-agent=Quicktime/7.2.0 vlc lua edition",":play-and-pause",":demux=avformat"};} )
     end
     return p
 end



More information about the vlc-commits mailing list