mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-10 19:46:22 +00:00
Calum Lind
2f1c008a26
[Console] Fix AttributeError setting config values
GitHub user JohnDoee reported that config settings are not decoded correctly, this error can be reproduced with a command like deluge-console -c /config/ "config --set download_location /downloads" > AttributeError: 'str' object has no attribute 'decode' The tokenize code was using 'string-escape' to decode strings but there is no direct replacement in Python 3 but also unnecessary. However the tokenize code is complex and buggy and not really suitable for the task of evaluating config values. A better alternative is to evaluate the config values using the json decoder with some additional logic to allow for previous syntax usage, such as parentheses. Added a comprehensive set of tests to check for potential config values passed in from command line.
Deluge BitTorrent Client
Deluge is a BitTorrent client that utilizes a daemon/client model. It has various user interfaces available such as the GTK-UI, Web-UI and a Console-UI. It uses libtorrent at it's core to handle the BitTorrent protocol.
Install
From PyPi:
pip install deluge
From source code:
python setup.py build
python setup.py install
See DEPENDS and Installing/Source for dependency details.
Usage
The various user-interfaces and Deluge daemon can be started with the following commands.
Use the --help
option for further command options.
Gtk UI
deluge
or deluge-gtk
Console UI
deluge-console
Web UI
deluge-web
Open http://localhost:8112 with default password deluge
.
Daemon
deluged
See the Thinclient guide to connect to the daemon from another computer.
Contact
Description
Deluge BitTorrent client - Git mirror, PRs only
https://www.deluge-torrent.org
Languages
Python
75.6%
JavaScript
15.3%
CSS
8.3%
Shell
0.4%
NSIS
0.3%
Other
0.1%