Set ia path variable for cron execution
This commit is contained in:
parent
6c16ee45bd
commit
43d55a27fd
@ -114,7 +114,7 @@ def run_ia_command():
|
|||||||
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_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 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")
|
||||||
|
Loading…
Reference in New Issue
Block a user