[Plugin] ltConfig v2.0.0

Suggest, post, or discuss plugins for Deluge
Post Reply
Ratanak
Leecher
Leecher
Posts: 98
Joined: Sat Dec 22, 2012 4:47 am

[Plugin] ltConfig v2.0.0

Post 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.

The current major version is 2.x. It targets Deluge 2.x and Python 3. If you have an older version of Deluge, please use v0.3.1.

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 2.0.3, libtorrent 1.1.1.13
Repository: https://github.com/ratanakvlun/deluge-ltconfig
Downloads: https://github.com/ratanakvlun/deluge-ltconfig/releases

Changelog (Full):
Version 2.0.0
- Update to support Deluge 2.x and Python 3

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
Last edited by Ratanak on Fri Aug 09, 2019 1:16 am, edited 21 times in total.
jkaberg
New User
New User
Posts: 3
Joined: Fri Feb 15, 2013 8:53 am

Re: [Plugin] libtorrent Config

Post 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/libto ... tomization
Ratanak
Leecher
Leecher
Posts: 98
Joined: Sat Dec 22, 2012 4:47 am

Re: [Plugin] libtorrent Config

Post 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.
three18ti

Re: [Plugin] libtorrent Config

Post 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.
Darlok
New User
New User
Posts: 7
Joined: Mon Oct 29, 2012 2:05 am

Re: [Plugin] libtorrent Config

Post by Darlok »

This is a fantastic plugin Ratanak, thank you kindly for sharing.
Phixion
Member
Member
Posts: 22
Joined: Sat Jul 30, 2011 7:43 pm

Re: [Plugin] libtorrent Config

Post by Phixion »

Anyone know why this plugin isn't displaying in the UI for me?

Running Wheezy / Python 2.7
Ratanak
Leecher
Leecher
Posts: 98
Joined: Sat Dec 22, 2012 4:47 am

Re: [Plugin] libtorrent Config v0.2

Post 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.
jorricks
Member
Member
Posts: 21
Joined: Sun Apr 14, 2013 11:33 am

Re: [Plugin] libtorrent Config v0.2.1

Post 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..
Ratanak
Leecher
Leecher
Posts: 98
Joined: Sat Dec 22, 2012 4:47 am

Re: [Plugin] libtorrent Config v0.2.1

Post by Ratanak »

jorricks, you have to check the box in the first column if you intend to modify a setting.
jorricks
Member
Member
Posts: 21
Joined: Sun Apr 14, 2013 11:33 am

Re: [Plugin] libtorrent Config v0.2.1

Post 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!
Post Reply