Get notified on your mobile device instantly when a large download finishes.
# Append to your Bash script case "$FIRST_FILE_PATH##*." in mp4|mkv|avi) mv "$DOWNLOAD_DIR"/* /mnt/media/videos/ ;; iso|img) mv "$DOWNLOAD_DIR"/* /mnt/storage/isos/ ;; zip|tar.gz|rar) mv "$DOWNLOAD_DIR"/* /mnt/storage/archives/ ;; *) mv "$DOWNLOAD_DIR"/* /mnt/storage/misc/ ;; esac Use code with caution. 🔔 2. Instant Telegram Notifications aria2 on-download-complete
#!/bin/bash # Capture arguments passed by aria2 GID="$1" FILE_NUM="$2" FIRST_FILE_PATH="$3" # Exit if no arguments are provided if [ -z "$GID" ]; then echo "Error: No arguments supplied by aria2." exit 1 fi # Extract the download directory name DOWNLOAD_DIR=$(dirname "$FIRST_FILE_PATH") echo "Download completed: GID $GID, Files: $FILE_NUM, Location: $DOWNLOAD_DIR" >> /var/log/aria2_hooks.log # Insert custom automation logic here Use code with caution. 2. Python Implementation Get notified on your mobile device instantly when
Always run chmod +x /path/to/script before assigning it to aria2 . Instant Telegram Notifications #
Please turn AdBlock off
Help support Hallsguide by disabling your AdBlocker for this site. Thank you.