Commit 6db40aa9 authored by Ilkka Ollakka's avatar 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 ).
parent 035d7c50
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment