From f5928594a5487cf5b973ee3283521bf545315f84 Mon Sep 17 00:00:00 2001 From: datechnoman Date: Mon, 8 Jan 2024 23:50:17 +0000 Subject: [PATCH] Changed time delta to 1 day to minimize cdx file count --- mediafire_automated_cdx_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediafire_automated_cdx_processor.py b/mediafire_automated_cdx_processor.py index 2a0acbc..952f77f 100644 --- a/mediafire_automated_cdx_processor.py +++ b/mediafire_automated_cdx_processor.py @@ -104,7 +104,7 @@ def run_ia_command(): current_date = datetime.now().strftime("%Y-%m-%d") # Calculate 2 days before the current date - two_days_before = (datetime.now() - timedelta(days=2)).strftime("%Y-%m-%d") + two_days_before = (datetime.now() - timedelta(days=1)).strftime("%Y-%m-%d") # Replace archiveteam_telegram with archiveteam_mediafire and add date range ia_search_command = f"ia search 'collection:archiveteam_mediafire addeddate:[{two_days_before} TO {current_date}]' --itemlist"