View Full Version : Call for Plugins!
kripkenstein
October 31st, 2006, 01:57 PM
Deluge 0.4 will have a plugin interface, which is mostly written and present in SVN already. So, if you know Python and want to write a plugin for Deluge, you can go right ahead :)
Notes:
1. Plugins are for the Deluge GUI only (the backend, libtorrent, is written in C++). So, at this stage, no plugins for e.g. encryption. But virtually anything in the GUI can be done (queuing methods, interfacing with other apps, visualizations, etc. etc.).
2. "Installing" a plugin is as simple as placing the source code in "/plugins". An "Example Plugin" appears in SVN, under "/plugins". As you can see there, a 'hello world' plugin is very simple. A fully-functional plugin is also present, PopupNotifier. Reading that source code may also be useful.
3. Good plugins may be made official and included with future releases of Deluge, if all parties involved agree to do so.
EDIT:
4. Note that the plugin interface may change slightly. Documentation of the interface should always appear in the "Example Plugin", where you will find a 'hello world' implementation, and code comments with explanations.
mithras86
October 31st, 2006, 02:54 PM
Good work! Very nice job!
I think the RSS support would be nice to implement as a plugin. What i think about it with my very little programming experience, is that this will be very easy when Deluge supports opening torrent in eg. firefox or with "deluge --open /parth/to/torrent" or something. Then you could read the rss, and point the new torrents to that command.
The search field (which I use very much) is also a good one to rewrite it as a plugin. People who don't need it, could just remove the plugin.
Further, is a graphical ui for managing the plugins not an option? Plugins in the /plugin directory are all in the manager, and there you could check the ones you'd like to enable. It means that the user don't need to enable/disable the plugin by changing them in the /usr/lib/deluge/plugins directory. That one is owned by root so not everybody can change their plugins. Also, not everybody knows that deluge is installed there, so a gui like Fx would be much more easier.
And I think there are more plugins that would be useful, but it's true that Deluge handles the torrent priority and the bandwith, isn't it? Then the idea of a more advanced queuing method could be implemented by a plugin:roll:
kripkenstein
October 31st, 2006, 03:00 PM
The search field (which I use very much) is also a good one to rewrite it as a plugin. People who don't need it, could just remove the plugin.
I don't use it, and I agree. Ditto for the network graph. I may get around to this eventually.
Further, is a graphical ui for managing the plugins not an option? Plugins in the /plugin directory are all in the manager, and there you could check the ones you'd like to enable.
It is an option, and it exists in SVN already :) Deluge registers all plugins from /plugins, then you pick the ones to actually use in the graphical UI (menu:edit->manage plugins). It saves your preferences here so the same plugins will start next time as well.
And I think there are more plugins that would be useful, but it's true that Deluge handles the torrent priority and the bandwith, isn't it? Then the idea of a more advanced queuing method could be implemented by a plugin:roll:
Indeed, this is a great example for a plugin.
mithras86
October 31st, 2006, 03:06 PM
It is an option, and it exists in SVN already :) Deluge registers all plugins from /plugins, then you pick the ones to actually use in the graphical UI (menu:edit->manage plugins). It saves your preferences here so the same plugins will start next time as well.
Wow, you've done more work than I expected you did http://gathering.tweakers.net/global/smileys/thumbsup.gif
zachtib
October 31st, 2006, 04:07 PM
Further, is a graphical ui for managing the plugins not an option? Plugins in the /plugin directory are all in the manager, and there you could check the ones you'd like to enable. It means that the user don't need to enable/disable the plugin by changing them in the /usr/lib/deluge/plugins directory. That one is owned by root so not everybody can change their plugins. Also, not everybody knows that deluge is installed there, so a gui like Fx would be much more easier.
I also think that there should be a ~/.deluge/plugins directory, so if the user doesn't have root access, he or she can still install a plugin locally for their user
kripkenstein
November 1st, 2006, 04:09 AM
I also think that there should be a ~/.deluge/plugins directory, so if the user doesn't have root access, he or she can still install a plugin locally for their user
Excellent idea, I will do this.
ruimoura
November 1st, 2006, 05:52 AM
I would like to suggest a Scheduler plugin, very important for those who don't have full unlimited Internet connection, but something they call "Happy Hours", where the traffic is unlimited.
Cheers.
jonas_g
November 1st, 2006, 10:23 AM
ruimoura: What kind of functionality would you like in a scheduler plugin?
I spent some time yesterday playing around with the plugin interface. If I can find enough time I can make a scheduler plugin of some sort.
ruimoura
November 1st, 2006, 10:34 AM
ruimoura: What kind of functionality would you like in a scheduler plugin?
I spent some time yesterday playing around with the plugin interface. If I can find enough time I can make a scheduler plugin of some sort.
I'm sorry because i didn't explain it correctly.
When i say scheduler, i'm thinking on something really simple, like utorrent has, or like the "Speed Scheduler" plugin that i use on Azureus.
My problem (and many others) is that here in Portugal the ISP's have something called "happy hours" (i don't know if that happens on other countries) where we can download/upload without the stupid limits. In my case it's from 3 to 9am. If i have a scheduler feature on a torrent client, i can program it so it starts downloading without any kind of bandwidth limits on those hours, and the rest of the day i can put a limit to uploads and downloads.
It's a really important feature, on this corner of the planet earth ](*,), and it is the only reason that makes me use Azureus. Azuresus it's really heavy for my system, ans when i have it turned on, let's say, more that 48 hours, i have to reboot the system.
There's no other decent torrent downloader with a scheduler feature for Linux (well, ktorrent has it, but ktorrent is really baaaaaaaaaad).
If you go to foruns, etc,etc, you can tell that a huge number of people is using Utorrent+Wine on Linux because of this feature.
I hope i make my ideia clear :-? ... On the other hand, i'm sorry i'm just asking and not doing nothing, but programming it's not for me, sorry :-|
Ps: sorry my bad english, not native language.
And thank you for caring ;)
mithras86
November 1st, 2006, 10:47 AM
In a short way: the scheduler caps your bandwith at selected times. In uTorrent, this is the dialog to handle that:
http://homepages.ihug.com.au/~sherna/utorrent/SpeedScheduler.jpg
You can select the times to download at full speed, limited speed or not downloading at all.
ruimoura
November 1st, 2006, 10:51 AM
In a short way, yes :rolleyes:. Thank you :-k
jonas_g
November 2nd, 2006, 04:18 PM
Sounds like an interesting project. :-) However, the upcoming weeks are quite busy for me, so I'm not sure if will be able to get much done. I have a mid-term exam tomorrow and a project due in a few weeks.
zachtib
November 2nd, 2006, 04:23 PM
Sounds like an interesting project. :-) However, the upcoming weeks are quite busy for me, so I'm not sure if will be able to get much done. I have a mid-term exam tomorrow and a project due in a few weeks.
same here, but I try not to let school get in the way of my distractions...
gil-galad
November 2nd, 2006, 06:06 PM
How about a plugin that uses libnotify to tell you when the torrent is finished? I might be able to throw that together.
zachtib
November 2nd, 2006, 06:08 PM
How about a plugin that uses libnotify to tell you when the torrent is finished? I might be able to throw that together.
i was thinking of this as well, go for it
kripkenstein
November 3rd, 2006, 01:19 AM
How about a plugin that uses libnotify to tell you when the torrent is finished? I might be able to throw that together.
Currently deluge uses the PopupNotifier plugin to show notifications (it shows popups based on the event log). So this could be used for your plugin to show the notifications for finished torrents and other things. However, I am not very familiar with libnotify; perhaps deluge should be using that instead - PopupNotifier could be rewritten to use libnotify.
What are the advantages of libnotify?
zachtib
November 3rd, 2006, 10:13 AM
What are the advantages of libnotify?
it looks nicer, and a lot of apps in ubuntu use it, so it would look a little more integrated
mithras86
November 3rd, 2006, 02:59 PM
Ok, when Kripkenstein came up with the ARIAAAI plugin, I thought about a new way to handle torrents:
I thought when typing the 'ARIAAAI should only warn you about this' part this: isn't it a good idea to extend the torrent list a bit more. Instead of a torrent is 'downloading', 'seeding' etc, put a flag on a torrent. Then, you could give a torrent the flags 'downloading', 'probably fake by RIAA' and 'movie'. You can sort torrents in a 100 ways: there can be a plugin to categorize torrents, to give them high, normal or low priority, to sort them in a special way.
The idea is a bit unpolished, but could be worth to think about it now, then discuss it when 1.0 is released ;)
kripkenstein
November 4th, 2006, 11:37 AM
it looks nicer, and a lot of apps in ubuntu use it, so it would look a little more integrated
Ok, the PopupNotifer plugin now uses libnotify.
If you don't have python-libnotify installed, it gives you a warning.
baze
November 4th, 2006, 03:26 PM
notification-daemon is also needed, else you get a traceback because Notification.service is missing.
kripkenstein
November 4th, 2006, 03:35 PM
notification-daemon is also needed, else you get a traceback because Notification.service is missing.
Thanks, I'll update the notification.
drezha
November 5th, 2006, 12:46 PM
What about a create torrent plugin?
I've not seen one and it would be useful. I sometimes distribute large amount of mods and patches to my computing forum and creating a torrent would mean I can finally stop using uTorrent+Wine (and I think the scheduler idea is good as well...I use the utorrent one as well, means I can leave the program running and not forget to open it at times to leave it to seed)
kripkenstein
November 5th, 2006, 12:56 PM
What about a create torrent plugin?
I think this is basic enough to not be a plugin. In any case, it will be implemented eventually, possibly soon.
zachtib
November 5th, 2006, 01:22 PM
What about a create torrent plugin?
this is slated to be a standard feature in 0.4
fsf@rula
November 6th, 2006, 07:48 AM
It would be nice if there was an option to delete the file when removing a torrent too...
Nice software, I can hardly wait for 0.4 to hit gentoo-sunrise overlay...DHT is pretty important here...maybe an svn ebuild would be nice.
mithras86
November 6th, 2006, 01:45 PM
DHT is pretty important here...maybe an svn ebuild would be nice.DHT is already available through svn. Also the latest version of libtorrent from svn to use the "unstable" Deluge
fsf@rula
November 6th, 2006, 10:53 PM
I visited the site of libtorrent-rb, but I couldn't find the svn repo. I know I need thet, cause I made svn ebuilds of both python-libtorrent and deluge, but it just segfaults at everything. I'll try to find the svn, but this is a lot just to get a good gtk+ torrent software installed.
Deluge looks good. With support for DHT, creating torrents the only thing I'll miss is transport encryption.
CHEERS!
edit: okay, no svn version of rb_libtorrent, but there is a cvs...:D
building right now...hope it's worth it.
zachtib
November 6th, 2006, 11:52 PM
I visited the site of libtorrent-rb, but I couldn't find the svn repo. I know I need thet, cause I made svn ebuilds of both python-libtorrent and deluge, but it just segfaults at everything. I'll try to find the svn, but this is a lot just to get a good gtk+ torrent software installed.
Deluge looks good. With support for DHT, creating torrents the only thing I'll miss is transport encryption.
CHEERS!
edit: okay, no svn version of rb_libtorrent, but there is a cvs...:D
building right now...hope it's worth it.
if you download python-libtorrent from SVN, it includes the entire rb-libtorrent sources. Then just use 'python setup.py build' to compile it.
fsf@rula
November 7th, 2006, 01:56 AM
NOW he tells me! ](*,) ](*,)
aw man! I have been messing with the cvs versions of libtorrent that requires some dark boost lib (I tried boost experimental from cvs/svn). okay, so I have svn of python-libtorrent, but I get some segfaults with deluge. Deluge opens fine, but whenever I try to do anything, it segfaults. :-k (this is svn. python-libtorrent and svn deluge)
If this is normal atm, then cool.
:confused:
cheers
kripkenstein
November 7th, 2006, 02:38 AM
NOW he tells me! ](*,) ](*,)
aw man! I have been messing with the cvs versions of libtorrent that requires some dark boost lib (I tried boost experimental from cvs/svn). okay, so I have svn of python-libtorrent, but I get some segfaults with deluge. Deluge opens fine, but whenever I try to do anything, it segfaults. :-k (this is svn. python-libtorrent and svn deluge)
If this is normal atm, then cool.
:confused:
cheers
No, that is not normal; something is wrong.
To make sure, what you need to do is: checkout python-libtorrent from svn, then compile it with "python setup.py install" (with superuser status). Make sure you get no errors (there may be a few warnings). Then checkout deluge from svn, and run it.
If you still get segfaults, tell us exactly what output you get, as well as warnings from python-libtorrent's compilation, if there were any.
kripkenstein
November 7th, 2006, 04:46 AM
The Plugin architecture should now be stable and finalized. At this point in time, I encourage people to write plugins :)
Much-improved documentation of the plugin architecture now appears (where it also was before), in the Example.py plugin source code.
fsf@rula
November 7th, 2006, 06:45 AM
Okay, I'll need to look into creating ebuilds first. I guess it might be because my ebuild is at fault, it's just that I don't like to install software without a way to remove it. I hacked together a quick svn ebuild based on the deluge ebuild in project sunrise overlay, but I am fairly new to gentoo and it's works...
I'll let you know what I end up with. Also: the notification plugin is bugging me, it says I don't have libnotify and notification-daemon installed, thos I do, but this might very well be also my ebuilds fault.
kripkenstein
November 7th, 2006, 07:40 AM
Also: the notification plugin is bugging me, it says I don't have libnotify and notification-daemon installed, thos I do, but this might very well be also my ebuilds fault.
Try to run python from the console, then do "import pynotify". If that doesn't work, then you don't have the pynotify module installed correctly for Python, and at least we'll know that the issue isn't Deluge.
fsf@rula
November 7th, 2006, 10:48 AM
okay, I'm the issue. I do have notify installed, but not the python bindings.
I am starting to feel I need to give up on this svn stuff. I don't know what packages provide this on gentoo and I don't really want to install stuff from source without being able to uninstall it.
I hope ver. 0.4 comes out soon, as 0.3 is not advanced enough, but 0.4 looks really good.
zachtib
November 7th, 2006, 10:55 AM
okay, I'm the issue. I do have notify installed, but not the python bindings.
I am starting to feel I need to give up on this svn stuff. I don't know what packages provide this on gentoo and I don't really want to install stuff from source without being able to uninstall it.
I hope ver. 0.4 comes out soon, as 0.3 is not advanced enough, but 0.4 looks really good.
Well, our development cycles seem to go pretty fast compared to a lot of things, but don't expect 0.4 to be out very soon. We've barely scratched the surface of what I want to accomplish during the 0.4 cycle, and there's a lot of cleaning up to be done to the code before we release our next version.
What I may do is make a 0.4-alpha1 set of debs at some point, so adventurous users can easily install and use it
baze
November 7th, 2006, 10:56 AM
so the notification plugin should tell users to install notification daemon and python-notify instead of notification-daemon and libnotify :)
kripkenstein
November 7th, 2006, 11:10 AM
so the notification plugin should tell users to install notification daemon and python-notify instead of notification-daemon and libnotify :)
The plugin says to install: "python-notify notification-daemon", and the first of these will cause libnotify to be installed. So this should be fine as it is, unless I am missing something?
zachtib
November 7th, 2006, 11:15 AM
The plugin says to install: "python-notify notification-daemon", and the first of these will cause libnotify to be installed. So this should be fine as it is, unless I am missing something?
im guessing that just python-libnotify would be enough, as i imagine libnotify would depend on the notification daemon
kripkenstein
November 7th, 2006, 11:24 AM
im guessing that just python-libnotify would be enough, as i imagine libnotify would depend on the notification daemon
Yeah, that would be the logical thing :) But amusingly, libnotify only recommends notification-daemon, it doesn't depend on it...
baze
November 7th, 2006, 11:32 AM
but python-notify depends on libnotify. i only had this message when only python-notify was requested and now that fsf@rula wrote that the plugin bugged him about libnotify and notification-daemon i thought it was changed. but since python-notify and notification-daemon _are_ actually requested, nevermind my posting ;)
zachtib
November 7th, 2006, 11:34 AM
Yeah, that would be the logical thing :) But amusingly, libnotify only recommends notification-daemon, it doesn't depend on it...
I'm guessing that's so that apps that have it built in because of stupid devs (j/k) don't force the end-user to use the notification daemon if they don't want to.
zachtib
November 7th, 2006, 10:21 PM
Well, the NetworkGraph and TorrentSearch features have now been broken off into their own plugins. I've also adapted the code so that plugins can easily add their widgets into the toolbar, just look at the Broadcatching plugin in the latest SVN to see how.
for reference, here's the current list of 'official' plugins so far for 0.4:
* NetworkHealthMonitor
* PopupNotifier
* NetworkGraph
* TorrentSearch
SpinesN
November 19th, 2006, 08:00 PM
Requesting some sort of memo plug in to allow one to leave notes that are associated with a torrent (just some kind of text document).
junkalam
November 25th, 2006, 09:48 AM
This is the best torrent client for Ubuntu by far. Excellent work guys !!
A few quick suggestions though, would it be possible to add a file prioritizing option to Deluge ? For example, if im downloading a movie torrent that has 2 files - cd1 & cd2 - it would be nice if i could set the priority of cd1 to high & cd2 to low, so i don't have to wait for the full torrent to download before starting to watch ;)
Adding menu options when right clicking a torrent within Deluge (pause, resume, priority etc...) could be handy as well.
Thanks and keep up the awesome work !
bionnaki
November 28th, 2006, 02:31 AM
how about a plugin that plays a quick .wav when a download is complete?
lazka
December 2nd, 2006, 12:11 PM
Hi,
I tried to make a scheduler-plugin today :)
but... I just started to learn python and it took me some time get into all this lists, gtk, glade stuff...
and now I'm kind of stuck: :confused:
everything is working fine except of a little bug and saving settings (couldn't get the the csv-module to work with bools.. whatever)
so pls zachtib: help!! :rolleyes:
ruimoura
December 2nd, 2006, 01:21 PM
Hi,
I tried to make a scheduler-plugin today :)
but... I just started to learn python and it took me some time get into all this lists, gtk, glade stuff...
and now I'm kind of stuck: :confused:
everything is working fine except of a little bug and saving settings (couldn't get the the csv-module to work with bools.. whatever)
so pls zachtib: help!! :rolleyes:
That is really nice :mrgreen: ... Lazka for president !
Btw, kind offtopic, but does anyone know if there is a .rpm for fedora 6 allready built?
zachtib
December 2nd, 2006, 01:25 PM
Hi,
I tried to make a scheduler-plugin today :)
but... I just started to learn python and it took me some time get into all this lists, gtk, glade stuff...
and now I'm kind of stuck: :confused:
everything is working fine except of a little bug and saving settings (couldn't get the the csv-module to work with bools.. whatever)
so pls zachtib: help!! :rolleyes:
nice start, I'll take a look at what you have so far
Btw, kind offtopic, but does anyone know if there is a .rpm for fedora 6 allready built?
No idea, I only maintain the .tar.gz and .deb packages
ruimoura
December 2nd, 2006, 01:28 PM
nice start, I'll take a look at what you have so far
No idea, I only maintain the .tar.gz and .deb packages
Ok. I'll try to build one from source ... i need the libtorrent, right?
zachtib
December 2nd, 2006, 01:31 PM
Ok. I'll try to build one from source ... i need the libtorrent, right?
you don't need to install libtorrent, just python-libtorrent. python-libtorrent includes the libtorrent source and it is then compiled in.
lazka
December 3rd, 2006, 09:51 AM
so, now the scheduler plugin is working. :)
and btw. I hate python
how should I know that copying lists just makes links instead of a copy.. :twisted:
how do i make a list containing 7 lists with 24 items?
a =[[True]*24]*7
makes 7 lists which are all linked to each other
the way I did it with 2 for loops seems kind of ugly to me (there is so much stuff in python for writing things in a shorter way..)
and i still don't know how to save and read bools in an csv file
..at least it's working now
edit: some code cleanup..., nothing special
download (http://lazka.maturaball06.com/files/scheduler.tar.bz2)
tumler
December 3rd, 2006, 02:27 PM
Good work on the plugin, I'll try it out
fuoco
December 4th, 2006, 03:19 PM
I would like to request a few things that I'm not sure can be implemented as plugin/s, but maybe someone here will know and want to do them.
These are taken from azureus and are very convenient. One is the "Availability" of torrents - it is described here:
http://www.azureuswiki.com/index.php/Availability
I consider this a very convenient feature, and a primary means of deciding if a torrent is worth downloading.
Another one related is "Average Swarm Speed" as described:
http://www.azureuswiki.com/index.php/Average_Swarm_Speed
Even though it is based on rough estimations it is a pretty useful way of seeing a torrent's 'potential'.
This is also a nice link: http://www.azureuswiki.com/index.php/Good_Torrents
ruimoura
December 5th, 2006, 07:48 PM
Me again.
I've allready managed to get deluge working on Fedora 6, but now i'm trying to use the scheduler plugin posted some replys up but i can access the preferences windows. It just doesn't do anything, and then the "ok" button from the plugin manager doens't work either.
Any idea?
Ps: i've copied the .glade to the plugins folder, like the other plugins.
EDIT:
I got it.
On "Scheduler.py" (i renamed both files to Scheduler.py and SchedulerConfig.glade, just to be like other plugins), where it is
self.gladefile = dc.APP_PATH + "/plugins/" + "SchedulerConfig.glade"
i changed it to
self.gladefile = self.location + "/" + "SchedulerConfig.glade"
I saw it from the PopupNotifier.py and it works.
fuoco
December 7th, 2006, 04:04 PM
Another idea: a plugin that allows deluge to know about network availability/status through dbus and NetworkManager. It can suspend when disconnected and start again automatically when reconnecting.
Maybe it could also know about your IP address, and tell you that you need to forward ports XXXX to ip address YYYY"
smbm
December 10th, 2006, 04:03 PM
I could have missed something but is there a possibility of getting a upnp plugin?
The network I am on will apparently not allow me to forward ports but can use upnp to do it automatically which is pretty inflexible but I am stuck with it for the time being.
Azureus seems to support it but Deluge is so much faster etc.
Thanks
Tom
r0nin
December 11th, 2006, 05:19 PM
What about a create torrent plugin?
I've not seen one and it would be useful. I sometimes distribute large amount of mods and patches to my computing forum and creating a torrent would mean I can finally stop using uTorrent+Wine (and I think the scheduler idea is good as well...I use the utorrent one as well, means I can leave the program running and not forget to open it at times to leave it to seed)
I think this is basic enough to not be a plugin. In any case, it will be implemented eventually, possibly soon.
I'd love to see that feature. Even if it's just a plugin. Keep up the good work!
lazka
March 10th, 2007, 11:41 AM
scheduler plugin for 0.5 .. now with some cool cairo stuff :)
ruimoura
March 10th, 2007, 03:44 PM
scheduler plugin for 0.5 .. now with some cool cairo stuff :)
Working pretty well. Great job, dude ;)
lazka
March 10th, 2007, 06:12 PM
so.. next version with down/upload limitation and some bugfixes.
hope it works :P
edit: updated again for final release.
zachtib
March 10th, 2007, 07:49 PM
so.. next version with down/upload limitation and some bugfixes.
hope it works :P
well, the first problem i see is that you're importing and querying deluge_core, which is sort of a no-no. instead, you should use the instance of deluge's Manager that you've saved to self.core in __init__
ruimoura
March 10th, 2007, 07:51 PM
so.. next version with down/upload limitation and some bugfixes.
hope it works :P
Causing the program to crash when activated. And no colors on the configuration ...
Last version only paused downloads, but it worked pretty fine ;)
lazka
March 10th, 2007, 08:45 PM
well, the first problem i see is that you're importing and querying deluge_core, which is sort of a no-no. instead, you should use the instance of deluge's Manager that you've saved to self.core in __init__
as far as i can see pause isn't part of the manager class. :confused:
http://www.deluge-torrent.org/browser/trunk/src/deluge.py#L438
code is really crappy :P lots of trying since i don't understand most of the stuff
Causing the program to crash when activated. And no colors on the configuration ...
Last version only paused downloads, but it worked pretty fine ;)
try to delete the old configuration file ~/.config/deluge/scheduler.conf
zachtib
March 10th, 2007, 10:43 PM
as far as i can see pause isn't part of the manager class. :confused:
set_user_pause
http://www.deluge-torrent.org/browser/trunk/src/deluge.py#L544
nslain
March 11th, 2007, 12:30 AM
Here is a simple queueing plugin I made, mostly to help get myself familiar with the Deluge source. Since I'm new to python and programming it's probably super buggy, but if you find any bugs or notice anything wrong with the code, I'll try my best to fix it :-)
Edit: If you use this, you may want to turn off Deluge's 'seeding' feature in preferences ,just to make sure they don't conflict or anything, but I haven't tested it enough yet to be sure.
lazka
March 11th, 2007, 05:28 AM
set_user_pause
http://www.deluge-torrent.org/browser/trunk/src/deluge.py#L544
edit: ok forget it... found a solution
ruimoura
March 11th, 2007, 06:10 AM
try to delete the old configuration file ~/.config/deluge/scheduler.conf
Thanks dude. Worked fine :D
nslain
March 11th, 2007, 01:47 PM
Here's version .2 of my Queue plugin. Here's the changes I made:
- Now saves max seed ratio & time in conf file.
- Removes the torrent instead of down queueing it (with 3 torrents I got an error where one of the torrents would just disappear when i tried to down queue it. Didn't test it with 4 or more torrents).
- If there's only one torrent in the queue, it seeds it indefinitely .
Please post any bugs or problems you have and I'll do my best to fix them.
orgilicious
March 13th, 2007, 05:35 PM
Ive written a very basic category-plugin.
you can add/remove categories (except of the "All" category) in the plugin preferences.
when clicking on the "categorize" button in the toolbar you can decide to which categories the marked torrent should belong to.
switching between categories simply works by using the combobox in the toolbar.
the screenshot shows the "categorize" dialog in the foreground.
AlanRogers
March 22nd, 2007, 07:21 AM
My problem (and many others) is that here in Portugal the ISP's have something called "happy hours" (i don't know if that happens on other countries) where we can download/upload without the stupid limits. In my case it's from 3 to 9am. If i have a scheduler feature on a torrent client, i can program it so it starts downloading without any kind of bandwidth limits on those hours, and the rest of the day i can put a limit to uploads and downloads.This is a 'feature' of broadband accounts here in the UK too, particularly those where speed is touted as the selling point, viz ADSL Max.
I've downloaded the scheduler.tar.bz2 from Lazka's post of 3rd December. Unfortunately, I can't open the file here on my Windows machine at work. Is it simply a case of extracting the contents to ~/.deluge/plugins and then firing up Deluge?
What news on other plugins, like Create Torrent? Is it possible to add the good plugins to the main Deluge site, so that they can easily be sourced by new users without having to search fora?
I'm new to P2P and Linux. I've used eMule and Kazaa on Windows, some time ago. Deluge is a beautifully simple and fuss-free client, which I use for downloading Linux distro ISOs.:KS
zachtib
March 22nd, 2007, 12:26 PM
Is it possible to add the good plugins to the main Deluge site, so that they can easily be sourced by new users without having to search fora?
Yes, please do.
Any plugin developers are welcome to create a wiki page for their plugin on http://deluge-torrent.org/wiki. The wiki allows you to attach files to the pages, so you can even attach the .tar.gz of your plugin. Once you have created a page for your plugin, add it to the list on http://deluge-torrent.org/wiki/Plugins. Include the name of the plugin, a short blurb about it and a link to the wiki page of your plugin.
AlanRogers
March 22nd, 2007, 08:26 PM
Okay, the scheduler doesn't work for me.
I've downloaded from the wiki PlugIns page, but I had to create (via sudo) the /deluge/plugins folder in /usr/share before I could drop the extracted /scheduler folder into it. When I fire up Deluge, I can't see anything in Edit > Manage Plugins. using Deluge 0.4, downloaded from the repos.
What am I doing wrong?
zachtib
March 22nd, 2007, 08:32 PM
Okay, the scheduler doesn't work for me.
I've downloaded from the wiki PlugIns page, but I had to create (via sudo) the /deluge/plugins folder in /usr/share before I could drop the extracted /scheduler folder into it. When I fire up Deluge, I can't see anything in Edit > Manage Plugins. using Deluge 0.4, downloaded from the repos.
What am I doing wrong?
You're using Deluge 0.4
The scheduler is written for 0.5. Besides, you might as well upgrade to the latest release anyways. If you're lazy (because I certainly am) you can grab debs here: http://deluge-torrent.org/downloads/deb/
btw, you can install plugins into ~/.config/deluge/plugins rather than use sudo to install them
lazka
March 23rd, 2007, 12:17 AM
btw, you can install plugins into ~/.config/deluge/plugins rather than use sudo to install them
uh.. sry. didn't know that.
zachtib
March 23rd, 2007, 12:35 AM
uh.. sry. didn't know that.
I just looked at your scheduler plugin for the first time, and I have to say, good work.
a couple of suggestions / ideas you could try:
it would be nice if you could click and drag the cursor to change entire blocks of the schedule at a time, so if I want to block off 3-5 all week long, I can drag through the week rather than click each box
also, you could add a schedule button to the toolbar to pop up the configuration dialog without going into the plugin dialog (self.interface.toolbar is the plugin-accessible toolbar)
finally, it would be nice if you listed the hours along the bottom of the blocks (0, 1, 2, 3, ...) and also put KB/s after the limit input boxes. Just a few aesthetic things, but I think it would make the plugin a little nicer overall.
Just some ideas, your plugin is great overall.
lazka
March 23rd, 2007, 09:48 AM
I just looked at your scheduler plugin for the first time, and I have to say, good work.
thx :D
a couple of suggestions / ideas you could try:
it would be nice if you could click and drag the cursor to change entire blocks of the schedule at a time, so if I want to block off 3-5 all week long, I can drag through the week rather than click each box
also, you could add a schedule button to the toolbar to pop up the configuration dialog without going into the plugin dialog (self.interface.toolbar is the plugin-accessible toolbar)
finally, it would be nice if you listed the hours along the bottom of the blocks (0, 1, 2, 3, ...) and also put KB/s after the limit input boxes. Just a few aesthetic things, but I think it would make the plugin a little nicer overall.
Just some ideas, your plugin is great overall.
You can already drag the cursor :P just click on a box and change it to e.g. yellow and then you can drag it around. I thought that's intuitive... maybe I have to change the behavior.
Since I'm working on my diploma thesis right now and there is only one month left until the final tests I don't have much time right now.. but I'll try. Thanks for the input.
zachtib
March 23rd, 2007, 10:13 AM
thx :D
You can already drag the cursor :P just click on a box and change it to e.g. yellow and then you can drag it around. I thought that's intuitive... maybe I have to change the behavior.
oh, now it works :P
the problem is i had to single click it first to change it to yellow, then drag it, as earlier, i guess it was just trying to drag the green
jamesford
March 23rd, 2007, 02:40 PM
i cant get the scheduler plugin to work (grabbed from deluge-torrent.org)
deluge
no existing Deluge session
deluge_core; using libtorrent 0.11.0.0. Compiled with NDEBUG value: 1
Applying preferences
Torrent Size 1305550848.0
Available Space 253137354752
Torrent Size 258280064.0
Available Space 253137354752
Torrent Size 1468255994.0
Available Space 253137354752
queue_item 1
queue_item 0
queue_item 2
Debug 1 {0: <deluge.deluge.torrent_info instance at 0x2b905e325a70>, 1: <deluge.deluge.torrent_info instance at 0x2b905e325b00>, 2: <deluge.deluge.torrent_info instance at 0x2b905e325cf8>} [1, 0, 2]
Debug 2 3 3
Traceback (most recent call last):
File "/usr/bin/deluge", line 63, in ?
interface = deluge.delugegtk.DelugeGTK()
File "/usr/lib/python2.4/site-packages/deluge/delugegtk.py", line 72, in __init__
self.plugins.scan_for_plugins()
File "/usr/lib/python2.4/site-packages/deluge/delugeplugins.py", line 43, in scan_for_plugins
execfile(folder + "/" + plugin + "/plugin.py")
File "/home/XXX/.config/deluge/plugins/Scheduler/plugin.py", line 5
class plugin_Scheduler():
^
SyntaxError: invalid syntax
still using 64bit/edgy
lazka
March 23rd, 2007, 07:19 PM
i cant get the scheduler plugin to work (grabbed from deluge-torrent.org)...
try now.
jamesford
March 23rd, 2007, 08:05 PM
wahey, works :))
i dont really understand how to use it tho. can i set it to limit downloads to say 300kbps during the day and 400 during the night and maybe 500 at other times?
Polygon
March 24th, 2007, 02:58 PM
yeah... post a short guide on how to use the scheduler plugin... i dont get it at all. I see that you click the boxes and they change color and there is a limit download/uploading thing at the bottom... which color does the values on the bottom go to?,..... too confusing
what i would do is make it so that at the bottom there are three things
green box: limit upload/download values
yellow box: limit upload/download values
red box: limit upload/download values
or maybe you could even make it even more customizable, and have an option to add different color boxes with different upload and download rates, so people can add more settings then just three.
lazka
March 24th, 2007, 08:39 PM
I will try to add this stuff in the next version.
btw. it's like a traffic light: red: pause / yellow : limited / green: normal
jamesford
March 25th, 2007, 06:54 AM
so red means all torrents are stopped
yellow means they are running at the speeds specified below
green unlimited?
polygons suggestion would be good if implemented
kiddvenom
March 26th, 2007, 02:04 AM
I'd like the ability to create torrents within Deluge.
AlanRogers
March 26th, 2007, 05:40 AM
What are the chances of having 0.5.0 backported to Dapper?
All of the above instructions appear to relate to 0.5.0, inferring that 0.4.0 is old news but 0.4.0 is all that's included in the repos and, as I'm still learning my way around Ubuntu Linux, I'm not really ready for trouble-shooting a failed install or work out how to install from other than Apt-Get or a DEB file.
Deluge is definitely a marvellously efficient torrent manager but it isn't quite as newbie-friendly as some of its more bloated competitors.
mberos
March 26th, 2007, 06:39 AM
To make it a little easier for all who don't yet know the wealth of knowledge contained within these forums, I have updated the Deluge Wiki Plugins (http://deluge-torrent.org/wiki/Plugins) page to include some info about the scheduler plugin.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.