Pushover script

Specific support for Deluge on Microsoft Windows OS
Post Reply
Phairplay
New User
New User
Posts: 5
Joined: Sat Jun 25, 2016 12:14 pm

Pushover script

Post by Phairplay »

Hello,
I currently use uTorrent and would like to switch to deluge. The one thing stopping me is a powershell script that send a pushover notification

Code: Select all

<#
  .SYNOPSIS
  Send a message when a torrent has finished
  
  .DESCRIPTION
  uTorrent allows a script to be ran with various parameters when a torrent has finished downloading
  or its state has changed.
  
  Settings can be found at Options -> Preferences -> Advanced -> Run Program
  
  Set the option Run this program when a torrent finishes" to the following
  powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-uTorrentNotify.ps1 %N
#>

Import-Module PS-Pushover

Send-PushoverMessage -title "Download Finished" -message $args[0] -sound "cashregister" `
    -user "user key" -token "api token"
No I'm a complete noob when is comes to coding is it possible to run a batch file through deluge that call the above script, as I've read deluge doesn't support powershell?
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Pushover script

Post by gderf »

Have you looked at the built in Execute plugin?
Phairplay
New User
New User
Posts: 5
Joined: Sat Jun 25, 2016 12:14 pm

Re: Pushover script

Post by Phairplay »

Yes I was able to create a batch file that call the powershell script

Cheers
Post Reply