From c1c0be47cfecbc12594b7c2ce136711f5fab6d81 Mon Sep 17 00:00:00 2001 From: datechnoman Date: Tue, 12 Mar 2024 10:58:55 +0000 Subject: [PATCH] Revert: f0a70605da606a69546e8d3733f792509d6f87c3 --- telegram_automated_cdx_processor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telegram_automated_cdx_processor.py b/telegram_automated_cdx_processor.py index fbedb93..ece7e1f 100644 --- a/telegram_automated_cdx_processor.py +++ b/telegram_automated_cdx_processor.py @@ -113,8 +113,8 @@ def run_ia_command(): # Calculate 2 days before the current date two_days_before = (datetime.now() - timedelta(days=1)).strftime("%Y-%m-%d") - # Replace archiveteam_telegram with archiveteam_telegram and add date range - ia_search_command = f"/usr/local/bin/ia search 'collection:archiveteam_telegram addeddate:[{two_days_before} TO {current_date}]' --itemlist" + # Replace archiveteam_telegram with archiveteam_mediafire and add date range + ia_search_command = f"/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") @@ -140,8 +140,8 @@ def run_ia_command(): # Function to create the telegram directory if it doesn't exist def create_telegram_directory(): - if not os.path.exists(TELEGRAM_DIRECTORY): - os.makedirs(TELEGRAM_DIRECTORY) + if not os.path.exists(MEDIAFIRE_DIRECTORY): + os.makedirs(MEDIAFIRE_DIRECTORY) # Function to move a file to the root folder def move_file(source_path):