From 15a0a1a6f5d8dee39803af9f6b492c57318771cf Mon Sep 17 00:00:00 2001 From: arkiver Date: Wed, 7 Jun 2023 23:13:42 +0200 Subject: [PATCH] Version 20230607.06. Ignore discovered /r/FIFA URL if coming from a /r/EASportFC parent URL. --- pipeline.py | 2 +- reddit.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pipeline.py b/pipeline.py index bc66055..e8cd01a 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 = '20230607.05' +VERSION = '20230607.06' TRACKER_ID = 'reddit' TRACKER_HOST = 'legacy-api.arpa.li' MULTI_ITEM_SIZE = 20 diff --git a/reddit.lua b/reddit.lua index 3d0be09..d0ef56b 100644 --- a/reddit.lua +++ b/reddit.lua @@ -152,6 +152,11 @@ allowed = function(url, parenturl) parenturl and string.match(parenturl, "^https?://[^/]*reddit%.com/user/[^/]+/duplicates/") and string.match(url, "^https?://[^/]*reddit%.com/user/[^/]+/duplicates/") + ) + or ( + parenturl + and string.match(parenturl, "^https?://[^/]+/r/EASportsFC/") + and string.match(url, "^https?://[^/]+/r/FIFA/") ) then return false end