Version 20220323.02. Fix items to maxtries variable name.

pull/13/head
arkiver 3 years ago
parent 10eaa7c50c
commit 8944cf1fc6

@ -59,7 +59,7 @@ if not WGET_AT:
#
# Update this each time you make a non-cosmetic change.
# It will be added to the WARC files and reported to the tracker.
VERSION = '20220323.01'
VERSION = '20220323.02'
TRACKER_ID = 'reddit'
TRACKER_HOST = 'legacy-api.arpa.li'
MULTI_ITEM_SIZE = 20

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

Loading…
Cancel
Save