[Plugin] ltConfig v0.3.1

Suggest, post, or discuss plugins for Deluge
Ratanak
Leecher
Leecher
Posts: 98
Joined: Sat Dec 22, 2012 4:47 am
OS or Distro: Windows 7

[Plugin] ltConfig v0.3.1

Postby Ratanak » Tue Feb 19, 2013 6:24 am

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
Last edited by Ratanak on Wed Jun 21, 2017 3:08 am, edited 20 times in total.

jkaberg
New User
New User
Posts: 3
Joined: Fri Feb 15, 2013 8:53 am
OS or Distro: Windows

Re: [Plugin] libtorrent Config

Postby jkaberg » Sun Feb 24, 2013 8:16 pm

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

Ratanak
Leecher
Leecher
Posts: 98
Joined: Sat Dec 22, 2012 4:47 am
OS or Distro: Windows 7

Re: [Plugin] libtorrent Config

Postby Ratanak » Tue Feb 26, 2013 3:50 am

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

Postby three18ti » Tue May 07, 2013 2:35 am

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
OS or Distro: Debian

Re: [Plugin] libtorrent Config

Postby Darlok » Fri May 17, 2013 11:25 pm

This is a fantastic plugin Ratanak, thank you kindly for sharing.

Phixion
Member
Member
Posts: 21
Joined: Sat Jul 30, 2011 7:43 pm
OS or Distro: Windows 7

Re: [Plugin] libtorrent Config

Postby Phixion » Mon Oct 14, 2013 5:12 am

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
OS or Distro: Windows 7

Re: [Plugin] libtorrent Config v0.2

Postby Ratanak » Mon Jan 13, 2014 6:54 pm

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
OS or Distro: Debian - Raspbian

Re: [Plugin] libtorrent Config v0.2.1

Postby jorricks » Thu Jan 23, 2014 8:20 pm

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
OS or Distro: Windows 7

Re: [Plugin] libtorrent Config v0.2.1

Postby Ratanak » Thu Jan 23, 2014 8:55 pm

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
OS or Distro: Debian - Raspbian

Re: [Plugin] libtorrent Config v0.2.1

Postby jorricks » Thu Jan 23, 2014 9:00 pm

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!


Return to “Plugins”

Who is online

Users browsing this forum: Bing [Bot] and 21 guests