TransmissionScreenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Features:
[li] shows current torrent-listing of your transmission-daemon, sorted by progress[/li]
[li] control-functions:
Clear Finished Torrents*
Add Torrent*
Open WebUI*
Open download directory*
Pause active torrents
Resume prev. active torrents
start/stop daemon
(items marked with * can be activated with buttons)[/li]
[li] optional: notification when torrent has finished downloading[/li]
[li] auto-run command on finished torrents[/li]

Depends:
[li] transmission (transmission-remote), tested with v 1.33[/li]
[li] screenlets, tested with v 0.1.2[/li]
[li] python-xlib (optional)[/li]
[li] pynotify (optional)[/li]

NB:
the icon is part of the transmission-package, so not made by me.

some usage examples/ideas for the autorun feature
1) logging
script:
#!/bin/bash
echo "`date`: $1" >> logfile

run with:
/path/to/script %n

2) stopping or removing
transmission-remote -t%t --stop
or
transmission-remote -t%t --remove
3) removing torrent based on ratio and moving files to another directory
script:
#!/bin/bash
if [ $(echo "a=$(transmission-remote -t$1 --info | grep Ratio | sed -e 's/ Ratio: //');b=$5;r=0;if(a>=b)r=1;r"|bc) -eq 1 ]
then
transmission-remote -t$1 --remove
mv $3/$2* $4
fi

run with:
/path/to/script %t %n %d "/archive/directory" desired.Ratio
uncheck "Run above command only once"
(please set desired.Ratio to 1.0 or higher)

4) playing sound (e.g. with play)
5) mail notification

these scripts are mostly untested, use at own risk
Last changelog:

10 years ago

v0.2beta3:
output formatting
minor bugfix

v0.2beta2:
bugfix

v0.2beta:
[li] improvements, cleaner code, fixes[/li]
[li] python-xlib dependency only optional (it's used to automatically set screenlet-width to screen-width when first started, if python-xlib is not present, it's set to 800pixels)[/li]
[li] notification (if pynotify is present)[/li]
[li] new features: start/stop daemon, pause/resume torrents, autorun command[/li]
-- please note that this is a beta release, so tell me about any bugs you find --

v0.1.1:
[li] bug-fix: listing of torrents didn't necessarily show all torrents[/li]
[li] added menuitems[/li]
[li] buttons can be hidden[/li]
[li] button size according to font[/li]

v0.1:
initial release

flakon

10 years ago

You will be may do support for deluge?

Report

C

Vaarsuvius

10 years ago

definitely not. "Adding" support for deluge would mean rewriting all/most of the code, so this would be a totally different screenlet. I do like the fact that Deluge is written in python, and using deluge instead of transmission would give me a lot of opportunities... but last time I tried deluge, it was way to buggy for me.
I doubt I will try deluge again anytime soon, so don't expect a screenlet for deluge from me.

Report

10 years ago

v0.2beta3:
output formatting
minor bugfix

v0.2beta2:
bugfix

v0.2beta:
[li] improvements, cleaner code, fixes[/li]
[li] python-xlib dependency only optional (it's used to automatically set screenlet-width to screen-width when first started, if python-xlib is not present, it's set to 800pixels)[/li]
[li] notification (if pynotify is present)[/li]
[li] new features: start/stop daemon, pause/resume torrents, autorun command[/li]
-- please note that this is a beta release, so tell me about any bugs you find --

v0.1.1:
[li] bug-fix: listing of torrents didn't necessarily show all torrents[/li]
[li] added menuitems[/li]
[li] buttons can be hidden[/li]
[li] button size according to font[/li]

v0.1:
initial release

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.2beta3
updated Jan 18 2009
added Nov 09 2008
downloads 24h
0
page views 24h 1