From 8944cf1fc6c3b8f8ec3fa55fdcc20968ee652823 Mon Sep 17 00:00:00 2001 From: arkiver Date: Wed, 23 Mar 2022 16:36:23 +0100 Subject: [PATCH] Version 20220323.02. Fix items to maxtries variable name. --- pipeline.py | 2 +- reddit.lua | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pipeline.py b/pipeline.py index 5d92e99..b783350 100644 --- a/pipeline.py +++ b/pipeline.py @@ -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 diff --git a/reddit.lua b/reddit.lua index 5950923..664e42f 100644 --- a/reddit.lua +++ b/reddit.lua @@ -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