mirror of
https://github.com/kennethreitz-archive/posterous-grab.git
synced 2026-06-05 23:30:19 +00:00
14 lines
266 B
Lua
14 lines
266 B
Lua
local url_count = 0
|
|
|
|
wget.callbacks.get_urls = function(file, url, is_css, iri)
|
|
-- progress message
|
|
url_count = url_count + 1
|
|
if url_count % 20 == 0 then
|
|
io.stdout:write("\r - Downloaded "..url_count.." URLs")
|
|
io.stdout:flush()
|
|
end
|
|
|
|
return {}
|
|
end
|
|
|