Search found 15 matches

by jacko
Fri Sep 27, 2024 11:13 am
Forum: Support
Topic: Hashing or moving multiple torrents
Replies: 1
Views: 12795

Re: Hashing or moving multiple torrents

Selecting all that are in the 'Checking' state, pausing them, and resuming them right away (while keeping the selection intact) would yield your desired behavior. The torrent on the top of that queue would return to 'Checking', others get queued up and get processed one at a time. I need the reverse...
by jacko
Mon Apr 01, 2024 8:01 pm
Forum: Support
Topic: Twisted challenge: 'None' returned from imported module
Replies: 7
Views: 11405

Re: Twisted challenge: 'None' returned from imported module

No problem at all, and once again, thanks for trying to help. I think and hope that Deluge will be around for many years to come, but I doubt if Twisted is going to gain any popularity. For anyone who needs a bridge between their sync or async programs and Twisted, Crochet is a great help: from delu...
by jacko
Sun Mar 31, 2024 8:41 pm
Forum: Support
Topic: Twisted challenge: 'None' returned from imported module
Replies: 7
Views: 11405

Re: Twisted challenge: 'None' returned from imported module

Oh, I forgot to mention, I tested the code you shared earlier and it exhibits the same behavior. The root of the problem is this: when is_operable() is called, Python is executing it as usual synchronous code. Inline functions get loaded and do_the_job() gets called. At the end of the do_the_job(), ...
by jacko
Sun Mar 31, 2024 2:02 pm
Forum: Support
Topic: Twisted challenge: 'None' returned from imported module
Replies: 7
Views: 11405

Re: Twisted challenge: 'None' returned from imported module

First of all, apologies for not getting back earlier, and thank you for your effort in trying to help me Martin. I appreciate it. I switched to using Crochet shortly after the above conversation and it worked well for me. However, this tab was always open on my browser, and, out of curiosity, I trie...
by jacko
Tue Jan 02, 2024 1:31 pm
Forum: Support
Topic: Twisted challenge: 'None' returned from imported module
Replies: 7
Views: 11405

Re: Twisted challenge: 'None' returned from imported module

Thanks for trying out Martin. I had added the prints later on as a poor man's debugging tool. But for the love of Odin, I cannot find what is emitting that None. I am expecting a True or False from my function_3 with an str, which is eventually returned but the caller has moved on after receiving th...
by jacko
Wed Dec 27, 2023 8:21 pm
Forum: Support
Topic: Twisted challenge: 'None' returned from imported module
Replies: 7
Views: 11405

Twisted challenge: 'None' returned from imported module

I am getting 'None' as the response as soon as I call the is_operable function, although I tried hard to make is_operable to return a non 'None' response. What am I doing wrong? This is my app and the response I am getting when I run: from my_module import is_operable def connect_and_run(**kwargs): ...
by jacko
Sat Jul 15, 2023 7:29 pm
Forum: Support
Topic: Mass move torrents to new storage
Replies: 7
Views: 4740

Re: Mass move torrents to new storage

Attached zip contains the main script deluge_move_v0.2.py and its two small dependencies. Please extract them all in a directory and run like this: ~/bin/deluge_move_v0.2.py --deluge_host 192.168.1.9 --deluge_port 48886 --FROM /home/myuser/Downloads --TO /mynas/somefolder It moves torrents residing ...
by jacko
Mon Jul 10, 2023 6:12 am
Forum: Support
Topic: RPC call to rename files and folders
Replies: 5
Views: 3655

Re: RPC call to rename files and folders

This forced me to have a crash course on reactor, which I had been avoiding since I first come across it. I guess I was on the wrong side of the fence.
Thanks heaps mhertz! This gets me going.
by jacko
Sun Jul 09, 2023 9:48 am
Forum: Support
Topic: deluged error filling syslog
Replies: 7
Views: 19709

Re: deluged error filling syslog

This is still reproducible with

Code: Select all

$ deluged -V
deluged 2.0.3
libtorrent: 2.0.8.0
Python: 3.11.2
OS: Linux Ubuntu 23.04 Lunar Lobster
and the solution is a single line change in log.py: https://git.deluge-torrent.org/deluge/c ... ed0f2c3206
by jacko
Sat Jul 08, 2023 7:06 pm
Forum: Support
Topic: RPC call to rename files and folders
Replies: 5
Views: 3655

RPC call to rename files and folders

I wanted to write a simple Python script that renames files/folders matching a certain criteria. I have exhausted all documentation and the StackOverflow but I am unable to find how the rename file/folder functionality works with Deluge v2.x . ChatGPT couldn't offer a working code either. Since we k...