Changed time delta to 1 day to minimize cdx file count

This commit is contained in:
datechnoman 2024-01-08 23:50:17 +00:00
parent 85319ba390
commit f5928594a5

View File

@ -104,7 +104,7 @@ def run_ia_command():
current_date = datetime.now().strftime("%Y-%m-%d") current_date = datetime.now().strftime("%Y-%m-%d")
# Calculate 2 days before the current date # 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 # 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 = f"ia search 'collection:archiveteam_mediafire addeddate:[{two_days_before} TO {current_date}]' --itemlist"