Update telegram_automated_cdx_processor.py
This commit is contained in:
parent
a82c328401
commit
f0a70605da
@ -113,8 +113,8 @@ def run_ia_command():
|
|||||||
# Calculate 2 days before the current date
|
# Calculate 2 days before the current date
|
||||||
two_days_before = (datetime.now() - timedelta(days=1)).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
|
# Replace archiveteam_telegram with archiveteam_telegram and add date range
|
||||||
ia_search_command = f"/usr/local/bin/ia search 'collection:archiveteam_mediafire addeddate:[{two_days_before} TO {current_date}]' --itemlist"
|
ia_search_command = f"/usr/local/bin/ia search 'collection:archiveteam_telegram addeddate:[{two_days_before} TO {current_date}]' --itemlist"
|
||||||
|
|
||||||
# Output file for ia search results
|
# Output file for ia search results
|
||||||
output_file = os.path.join(ROOT_DIRECTORY, "ia_search_results.txt")
|
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
|
# Function to create the telegram directory if it doesn't exist
|
||||||
def create_telegram_directory():
|
def create_telegram_directory():
|
||||||
if not os.path.exists(MEDIAFIRE_DIRECTORY):
|
if not os.path.exists(TELEGRAM_DIRECTORY):
|
||||||
os.makedirs(MEDIAFIRE_DIRECTORY)
|
os.makedirs(TELEGRAM_DIRECTORY)
|
||||||
|
|
||||||
# Function to move a file to the root folder
|
# Function to move a file to the root folder
|
||||||
def move_file(source_path):
|
def move_file(source_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user