This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A shell scirpt designed to be executed by qBittorrent's "Run external program on torrent completion" | |
# This scirpt will send a Slack notification using Slack's Incoming Webhooks with the information of completed torrent | |
# | |
# An example how to fill in qBittorrent's "Run external program on torrent completion" to execute this script | |
# /bin/bash -c "chmod +x /path/to/qbittorrent-slack-notify.sh; /path/to/qbittorrent-slack-notify.sh '%N' '%Z' 'https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZ'" | |
# | |
# Supported parameters (case sensitive): | |
# - %N: Torrent name |