From 43d55a27fd92807c6a9faf6df0015989a44d4aa9 Mon Sep 17 00:00:00 2001 From: datechnoman Date: Tue, 9 Jan 2024 21:35:25 +0000 Subject: [PATCH] Set ia path variable for cron execution --- 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 3fb1976..10b5a91 100644 --- a/mediafire_automated_cdx_processor.py +++ b/mediafire_automated_cdx_processor.py @@ -114,7 +114,7 @@ def run_ia_command(): 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" + ia_search_command = "/usr/local/bin/ia search 'collection:archiveteam_mediafire addeddate:[{two_days_before} TO {current_date}]' --itemlist" # Output file for ia search results output_file = os.path.join(ROOT_DIRECTORY, "ia_search_results.txt")