Good Afternoon Folks,
I have a remote server (Linux) running Deluge 2.1.1 and I am running 2.1.1 (Windows) here locally. For the longest time when I was using Deluge 1.3.15 I was able to use deluge-console.exe to remotely manage my torrents. When I upgraded to 2.1.1 it seems like the deluge-console.exe is no longer working.
I was able to find a ticket but that has been from two years ago. Has the deluge-console on windows been abandoned? Or if someone can point me in the right direction for any documentation on how to get it working in Windows I would very thankful.
I rolled everything back to Deluge 1.3.15 and things are rolling again. But its its possible to move to the latest version I would like to try to.
deluge-console.exe on Windows 11 Not Working
Re: deluge-console.exe on Windows 11 Not Working
Hi 
I posted previously how to fix with a zip file I provided, if wanted.
It's not abandoned on windows, just little slow development at times.
Hope helps.
Edit: Maybe an actual link would help lol, sorry buddy: viewtopic.php?p=237574#p237574

I posted previously how to fix with a zip file I provided, if wanted.
It's not abandoned on windows, just little slow development at times.
Hope helps.
Edit: Maybe an actual link would help lol, sorry buddy: viewtopic.php?p=237574#p237574
Re: deluge-console.exe on Windows 11 Not Working
I ended up swapping back to 1.3.15 so that I could use the console for managing my torrents.
Oddly enough I was never able to really figure out how to just seed a torrent for 14 days or to a ratio of 10 and then remove it along with the data. So that's what I ended up using the console for. I am a windows user that has a Linux seedbox so having the console gave me a really nice way to use PowerShell to talk with Deluge. Just for fun I posted my monster of an ugly script (but it works) down below. I cant be the only Windows yahoo that talks with a remote Deluge.
I'm excited when the console for 2.0 gets up and working so I can update my janky script to work with it. Thanks for everything yall do. <3
Oddly enough I was never able to really figure out how to just seed a torrent for 14 days or to a ratio of 10 and then remove it along with the data. So that's what I ended up using the console for. I am a windows user that has a Linux seedbox so having the console gave me a really nice way to use PowerShell to talk with Deluge. Just for fun I posted my monster of an ugly script (but it works) down below. I cant be the only Windows yahoo that talks with a remote Deluge.
Code: Select all
$delugeCmdPath = "C:\Program Files (x86)\Deluge\deluge-console.exe" #Update if your **** is different
$serverAddress = "IP or Address to your Deluge Box" #Update
$serverPort = "PortNumber" #Update
$username = "YourUserName" #Update
$password = "YourPassword" #Update
$output = & $delugeCmdPath "connect $($serverAddress):$($serverport) $username $password;info"
$torrentObjects = @()
$torrentData = @{}
# Initialize variables
$torrentObjects = @()
$currentObject = [ordered]@{}
# Loop through each line and parse the data
foreach ($line in $output) {
if ($line -match "^\s*$") {
if ($currentObject.Count -gt 0) {
$torrentObjects += [PSCustomObject]$currentObject
$currentObject = [ordered]@{}
}
} elseif ($line -match "^Name:\s*(.+)") {
$currentObject.Name = $matches[1]
} elseif ($line -match "^ID:\s*(.+)") {
$currentObject.ID = $matches[1]
} elseif ($line -match "^State:\s*(\w+) Up Speed:\s*(.+)") {
$currentObject.State = $matches[1]
$currentObject.UpSpeed = $matches[2]
} elseif ($line -match "^Seeds:\s*(\d+ \(\d+\)) Peers:\s*(\d+ \(\d+\)) Availability:\s*(.+)") {
$currentObject.Seeds = $matches[1]
$currentObject.Peers = $matches[2]
$currentObject.Availability = $matches[3]
} elseif ($line -match "^Size:\s*([\d\.]+ \S+\/[\d\.]+ \S+) Ratio:\s*(\d+\.\d{3})") {
$currentObject.Size = $matches[1]
$currentObject.Ratio = $matches[2]
} elseif ($line -match "^Seed time:\s*(.+) Active:\s*(.+)") {
$currentObject.SeedTime = $matches[1]
$currentObject.Active = $matches[2]
} elseif ($line -match "^Tracker status:\s*(.+)") {
$currentObject.TrackerStatus = $matches[1]
}
}
# Add the last parsed object
if ($currentObject.Count -gt 0) {
$torrentObjects += [PSCustomObject]$currentObject
}
# Clear Torrents Over 14 days Old
Foreach($torrent in $torrentObjects){
if ($torrent.SeedTime -like '*15 Days*') {
& $delugeCmdPath "connect $($serverAddress):$($serverport) $username $password;rm $($torrent.ID) --remove_data"
}
}
# Clear Torrents With Ratio Over 5
Foreach($torrent in $torrentObjects){
If([Double]$torrent.Ratio -ge 5){
& $delugeCmdPath "connect $($serverAddress):$($serverport) $username $password;rm $($torrent.ID) --remove_data"
}
}