|
|
@ -677,16 +677,16 @@ wget.callbacks.finish = function(start_time, end_time, wall_time, numurls, total
|
|
|
|
file:write(url .. "\n")
|
|
|
|
file:write(url .. "\n")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
file:close()
|
|
|
|
file:close()
|
|
|
|
local items = nil
|
|
|
|
local newurls = nil
|
|
|
|
for item, _ in pairs(outlinks) do
|
|
|
|
for newurl, _ in pairs(outlinks) do
|
|
|
|
print('found item', item)
|
|
|
|
print('found item', newurl)
|
|
|
|
if items == nil then
|
|
|
|
if newurls == nil then
|
|
|
|
items = item
|
|
|
|
newurls = newurl
|
|
|
|
else
|
|
|
|
else
|
|
|
|
items = items .. "\0" .. item
|
|
|
|
newurls = newurls .. "\0" .. newurl
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if items ~= nil then
|
|
|
|
if newurls ~= nil then
|
|
|
|
submit_backfeed(newurls, "reddit-ldayno5jboa5c0o")
|
|
|
|
submit_backfeed(newurls, "reddit-ldayno5jboa5c0o")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|