[patch] Python plugins for Transmission/OSX

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Farcaller
Posts: 3
Joined: Mon Jan 05, 2009 10:03 am

[patch] Python plugins for Transmission/OSX

Post by Farcaller »

Hi all,

I wonder if anyone here is interested in plugin capabilities for OSX Transmission GUI. I've made a quick patch, that allows Transmission to be scriptable, and it solves all the issues that I was missing in Transmission (mainly intellectual removal of updated torrents and re-downloading of torrent files with updated data). If I see a demand for the feature, I'll try to clean up the patch to be nice-looking for upstream proposal (if upstream would accept such addition anyway).
hippy dave
Posts: 133
Joined: Tue Mar 13, 2007 6:34 pm

Re: [patch] Python plugins for Transmission/OSX

Post by hippy dave »

sounds interesting, what functions are scriptable? cheers.
Farcaller
Posts: 3
Joined: Mon Jan 05, 2009 10:03 am

Re: [patch] Python plugins for Transmission/OSX

Post by Farcaller »

Technically speaking, absolutely everything is scriptable, as all the Objective-C layer is exposed to Python and you have access to all Transmission's classes. I'm now working on a set of hooks, that would simplify callbacks though. So, e.g, on torrent addition you can get a list of all torrents, regex-match any with similar name and trash them as obsoletes.
hippy dave
Posts: 133
Joined: Tue Mar 13, 2007 6:34 pm

Re: [patch] Python plugins for Transmission/OSX

Post by hippy dave »

sounds good to me!
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: [patch] Python plugins for Transmission/OSX

Post by lazybones »

I would be more interested in this for the transmission-daemon, as it stands there are a bunch of scripts out there that call the transmission-cli in a loop to monitor, perform tasks via loop or cron. It would be far more efficient if transmission it self could fire script events.
Last edited by lazybones on Thu Jan 28, 2010 10:17 pm, edited 1 time in total.
mechanic
Posts: 37
Joined: Mon Jul 31, 2006 5:03 pm

Re: [patch] Python plugins for Transmission/OSX

Post by mechanic »

I agree with lazybones. Supported for event-triggered hooks should be added to libtransmission and everything else can be done via the rpc methods.
Bhima
Posts: 4
Joined: Sun May 09, 2010 8:32 am

Re: [patch] Python plugins for Transmission/OSX

Post by Bhima »

So... did you ever finish this? I was wanting Applescript awareness but Python awareness would be good enough.
Post Reply