1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

Lua: fix Allocine for large result pages

Some pages are really huge, the only way we are sure we'll
be able to parse them is to download them entirely
This commit is contained in:
Jean-Philippe André 2011-01-22 14:13:38 +01:00
parent 0e17b717fe
commit 2a3c9b8eae

View File

@ -157,8 +157,13 @@ function click_chercher()
vlc.keep_alive()
-- Fetch HTML data (max 65 kb)
local data = s:read(65535)
vlc.keep_alive()
local data = "", tmpdata
repeat
tmpdata = s:read(65535)
vlc.keep_alive()
if not tmpdata then break end
data = data .. tmpdata
until tmpdata == ""
-- Clean data
data = string.gsub(data, "<b>", "")