Commit da2d1106 authored by Ilkka Ollakka's avatar Ilkka Ollakka

appletrailers: remove unneeded debug

parent f5545462
...@@ -50,18 +50,15 @@ function main() ...@@ -50,18 +50,15 @@ function main()
playlistline = playlist:readline() playlistline = playlist:readline()
description ="" description =""
vlc.msg.info( "http://trailers.apple.com"..url.."includes/playlists/web.inc" )
if not playlistline then vlc.msg.info("Empty playlists-file") end if not playlistline then vlc.msg.info("Empty playlists-file") end
while playlistline ~= nil while playlistline ~= nil
do do
if string.match( playlistline, "class=\".-first" ) then if string.match( playlistline, "class=\".-first" ) then
description = find( playlistline, "h%d.->(.-)</h%d") description = find( playlistline, "h%d.->(.-)</h%d")
vlc.msg.info( "Got type:"..description )
end end
if string.match( playlistline, "class=\"hd\".-\.mov") then if string.match( playlistline, "class=\"hd\".-\.mov") then
for urlline,resolution in string.gmatch(playlistline, "class=\"hd\".-href=\"(.-.mov)\".-(%d+.-p)") do for urlline,resolution in string.gmatch(playlistline, "class=\"hd\".-href=\"(.-.mov)\".-(%d+.-p)") do
urlline = string.gsub( urlline, "_"..resolution, "_h"..resolution ) urlline = string.gsub( urlline, "_"..resolution, "_h"..resolution )
vlc.msg.info( "adding url:"..urlline )
node:add_subitem( {path = urlline, node:add_subitem( {path = urlline,
title=title.." "..description.." ("..resolution..")", title=title.." "..description.." ("..resolution..")",
options=options, arturl=art }) options=options, arturl=art })
...@@ -69,7 +66,6 @@ function main() ...@@ -69,7 +66,6 @@ function main()
end end
playlistline = playlist:readline() playlistline = playlist:readline()
end end
vlc.msg.info( "entry done...")
end end
line = fd:readline() line = fd:readline()
end 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