- playlistline = playlist:readline()
- description =""
- if not playlistline then vlc.msg.info("Empty playlists-file") end
- while playlistline ~= nil
- do
- if string.match( playlistline, "class=\".-first" ) then
- description = find( playlistline, "h%d.->(.-)</h%d")
- end
- if string.match( playlistline, "class=\"hd\".-\.mov") then
- for urlline,resolution in string.gmatch(playlistline, "class=\"hd\".-href=\"(.-.mov)\".-(%d+.-p)") do
- urlline = string.gsub( urlline, "_"..resolution, "_h"..resolution )
- node:add_subitem( {path = urlline,
- title=title.." "..description.." ("..resolution..")",
- options=options, arturl=art })
- end
- end
- playlistline = playlist:readline()
- end