Page 1 of 12

[Plugin] ltConfig v0.3.1

Posted: Tue Feb 19, 2013 6:24 am
by Ratanak
ltConfig is a plugin for Deluge that allows direct modification to libtorrent settings.

This plugin adds a preference page to both GtkUI and WebUI.

WARNING: Modify settings at your own risk!

For information about each setting, see the libtorrent manual.

NOTE: Older versions of libtorrent may have different settings. You can get some info on
your specific version by visiting the code repository here. Select your specific version and then
navigate to and open: include/libtorrent/session_settings.hpp. Do a search for "session_settings(".
You should find the setting declarations and comments that describe them.

To make sure changes persist, modify this plugin's preference page by itself. Modifying any of
the Deluge preference pages at the same time may trigger a Deluge callback that could override
some of the libtorrent settings set by this plugin.

Changes should take effect immediately. There may be some settings whose changes might not
be acknowledged by libtorrent.

Compatibility notes:
  • Tested with Deluge 1.3.15, libtorrent 1.1.3
  • May work from Deluge 1.3.3
  • May work from GTK+ 2.16
  • May work from libtorrent 0.14.12
Repository: https://github.com/ratanakvlun/deluge-ltconfig
Downloads: https://github.com/ratanakvlun/deluge-ltconfig/releases

Changelog (Full):
Version 0.3.1
- Fix hang when using Deluge from Debian 9 repo
- Improve compatibility of presets
- Restart network services when settings changed

Version 0.3.0
- Add support for dict settings (lt >= 0.16.x)
- Add libtorrent defaults preset
- Change version to semantic versioning

Version 0.2.5.0
- Add support for DHT settings

Version 0.2.4.1
- Fix ltConfig not trying to use Deluge's libtorrent first
- Fix libtorrent version checking

Version 0.2.4.0
- Add preset support (from https://github.com/omaralvarez)
- Allow columns to be resized in GtkUI

Version 0.2.3.0
- Add WebUI support
- Fix apply button not applying if apply on start is disabled

Re: [Plugin] libtorrent Config

Posted: Sun Feb 24, 2013 8:16 pm
by jkaberg
hey ratanak

nice plugin you got there, think you could implent

Code: Select all

bool lock_files;


with that? check http://www.rasterbar.com/products/libtorrent/manual.html#session-customization

Re: [Plugin] libtorrent Config

Posted: Tue Feb 26, 2013 3:50 am
by Ratanak
jkaberg wrote:nice plugin you got there, think you could implent

Code: Select all

bool lock_files;

The plugin just enumerates the settings returned by libtorrent (there is no fixed handling of any particular setting). The setting should already be exposed if your version of libtorrent supports it. The "lock_files" setting in particular is supported starting from libtorrent 0.16.0.

If you are using Deluge on Windows, you can try updating your libtorrent by downloading an installer (.msi) from here. Make sure you get the right one for your Python version (Deluge 1.3.5 for Windows comes with Python 2.6). Run the installer and when it is done, copy the "libtorrent.pyd" file from the install location to your Deluge folder. You may want to make a backup of the original that's already in the Deluge folder just in case you want to revert back to the old version. After a restart of Deluge, it should now be using the updated libtorrent version.

Re: [Plugin] libtorrent Config

Posted: Tue May 07, 2013 2:35 am
by three18ti
Thanks Ratanak,

Just wanted to say this worked great for me on two different hosts with lib torrent versions 0.15.10.0 and 0.16.3.0 in deluge 1.3.6.

Re: [Plugin] libtorrent Config

Posted: Fri May 17, 2013 11:25 pm
by Darlok
This is a fantastic plugin Ratanak, thank you kindly for sharing.

Re: [Plugin] libtorrent Config

Posted: Mon Oct 14, 2013 5:12 am
by Phixion
Anyone know why this plugin isn't displaying in the UI for me?

Running Wheezy / Python 2.7

Re: [Plugin] libtorrent Config v0.2

Posted: Mon Jan 13, 2014 6:54 pm
by Ratanak
Version updated to 0.2.

There are now additional columns that give a better idea of what settings are in effect. There is a column that allows the user to select which settings will be applied, a column that shows the current user setting (or if the setting is disabled, the original value at time of plugin start) and a column with the current actual libtorrent settings.

Also in this update, there is an option to toggle whether the settings are applied on startup so the user can choose not to have the settings automatically applied. By startup, it is meant the start of the plugin and not the daemon.

Re: [Plugin] libtorrent Config v0.2.1

Posted: Thu Jan 23, 2014 8:20 pm
by jorricks
I can't set a single setting..
I will show you what I mean with a screenshot
http://imageshack.com/a/img855/3477/4f73.jpg
When I tried to chance the value 500 to something else, I get the bar that normally you got instead of 500 with 500 in it, now in the right bottom somewhere, blank, without anything in it.
I entered "3....." just as example..
I can't apply this value somehow..
I can't get it off the 500..

Re: [Plugin] libtorrent Config v0.2.1

Posted: Thu Jan 23, 2014 8:55 pm
by Ratanak
jorricks, you have to check the box in the first column if you intend to modify a setting.

Re: [Plugin] libtorrent Config v0.2.1

Posted: Thu Jan 23, 2014 9:00 pm
by jorricks
NVM! I understood it wrong,
First enable the check box, then instead of trying to chance actual chance setting xD
OOPS :P
Thanks for the help!