This commit is contained in:
datechnoman 2024-03-12 10:58:55 +00:00
parent d36d5ca79e
commit c1c0be47cf

View File

@ -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):