Page 1 of 1

deluge-console: Get complete torrents infos on 2.0

Posted: Fri Sep 25, 2020 2:07 pm
by pablo450
Hi guys,

I just updated to 2.0 and I only miss one thing from previous version : the output of deluge-console info :cry:

It used to give every info on torrents including age, tracker, etc. and now it's much more concise.

As deluge-console accept more parameters maybe there is a way to get more verbose output on a torrent but I didn't find any.

I used to regex the output to generate all kind of useful stats from it and I do miss the old deluge-console info :|
(You maybe know this feeling when your code broke after an update)

Do you know how could I get the same infos I used to have (ex: age of the torrent, tracker announce and current tracker), even if it is through a file I'd have to parse or maybe through python deluge libraries (without having to do a full deluge plugin) ?

Thanks :)

Re: deluge-console: Get complete torrents infos on 2.0

Posted: Fri Sep 25, 2020 4:14 pm
by mhertz
Yeah, I felt same, and I missed seed/peer count myself. In the old version, then the verbose, and extra-verbose switches of 'info' command, gave some not that useful info, as you already had the useful ones, but now, the verbose switch('-v') is the answer to your question - quote the commands or you get version info of libs used.

BTW, this new version has a code change to now not support anymore the pretty awesome "beginning-with" filtering/matching, but now suport one or two asterisks, so supports globbing pretty good, which is even nicer/more-powerful, for filtering based on either beginning, end or somewhere in-between/middle, of torrentname/hash. There's also full tab-completion in interactive/curses mode, like in old version, but I'm here talking about when used from terminal(non-interactive/curses), e.g from shell-aliases/functions. Just in case you didn't knew :)

Re: deluge-console: Get complete torrents infos on 2.0

Posted: Fri Sep 25, 2020 4:38 pm
by pablo450
Ohhh I already tried

Code: Select all

deluge-console info -v
Which returns the current version but not

Code: Select all

deluge-console "info -v"
I feel that when to pass parameters or just commands to deluge-console is pretty ambiguous. Is there any real doc on it ? I just found man pages giving the parameters but for example commands between brackets are not mentioned anywhere (anywhere I've seen).

Thanks man :D

Re: deluge-console: Get complete torrents infos on 2.0

Posted: Fri Sep 25, 2020 6:05 pm
by mhertz
You're welcome :)

Yeah, the documentation is rather lacking really, on that part of project, which probably is because isn't that popular I'm guessing, but atleast we have the 'help <command>'.

Re: deluge-console: Get complete torrents infos on 2.0

Posted: Sat Sep 26, 2020 11:49 am
by pablo450
Alright thanks a lot, I'm back at it :P I forget the possibility to pass commands between brackets.