878 Commits

Author SHA1 Message Date
Calum Lind
14a55133af [#2219] Update the UIs for single Proxy and I2P Proxy 2014-02-17 01:38:02 +00:00
Calum Lind
fa0911dbdf Convert proxy config from multi to single setting 2014-02-16 18:39:01 +00:00
Calum Lind
a5fa5d0451 [#2219] Add i2p proxy setting to core 2014-02-16 18:34:38 +00:00
Calum Lind
67e9787ba1 [#1923] Add pre-allocation and remove compact allocation
Compact allocation is deprecated and a new pre-allocation is available.

Any torrents already using compact will continue to do so but any newly
added only can use sparse (default) or allocate options.

The UIs have been updated to only display a checkbox in preferences for
the user to enable 'Pre-allocate disk space'.
2014-02-16 06:12:37 +00:00
Calum Lind
4486592f04 Fix comment quotes changed by previous commit 2014-02-16 00:45:39 +00:00
Calum Lind
2ae9a4bdbb Very large refactor and cleanup of torrent.py
Use new docstring format and added to all funcs
Pylint and flake8 fixes; only a few warnings remain for pylint
2014-02-15 23:04:58 +00:00
Calum Lind
7dceb629ca Add name to torrent options 2014-02-15 09:27:46 +00:00
Calum Lind
0aed074796 Move owner to torrent options 2014-02-15 09:26:08 +00:00
Calum Lind
a9ed6fe46a refactor torrent.set_options 2014-02-15 09:26:08 +00:00
Calum Lind
1d68579b57 Mark set_torrent_* methods deprecated 2014-02-15 09:23:18 +00:00
Calum Lind
f66274fd9d Remove unneeded old 'public' option code 2014-02-12 11:09:39 +00:00
Calum Lind
0a001f98e3 Add torrent bandwidth priority to core 2014-02-11 19:57:07 +00:00
Calum Lind
0531276b9b [#2417] Add time_since_download and time_since_upload to torrent status 2014-02-11 16:52:14 +00:00
Calum Lind
2be5474f3a [#2082] Validate ip address for listen_interface entry
This ensures that only ip addresses are accepted for
listen_interface as libtorrent cannot accept interface
names (eth0) and will cause unexpected results for user.
2014-02-11 16:37:41 +00:00
Calum Lind
d9ce4ff634 add comment to tracker_error_alert handler 2014-01-30 13:19:21 +00:00
Calum Lind
2c4af8f136 Fix empty message for certain tracker status errors
By design alert.msg will be empty if the error code is '-1' so use
a.e.message() to get the message as fallback. It was not used at
replacement because when error code is not '-1' then a.e.message()
will also include the error code, which we do not want.
2014-01-30 11:58:04 +00:00
Calum Lind
a2fcaa15c9 Fix #2006 : Display error when moving storage location fails
Adds handler for storage_moved_failed_alert and then sets the
torrent to Error state and pauses it.
2014-01-20 18:49:22 +00:00
Calum Lind
7271472e13 Ensure status message is reset after leaving Error state
Also clean up comments in core.py
2014-01-20 18:49:21 +00:00
Calum Lind
64fd94e51e Add external ip alert handler to core 2014-01-20 18:49:21 +00:00
Calum Lind
ce6abe0247 Fix #1466 : Performance warning: Send Buffer Watermark 2014-01-20 18:49:21 +00:00
Calum Lind
c3477ace9b Flake8'd core files 2014-01-18 23:26:18 +00:00
Calum Lind
ef7605f9ec Add missing entries to OPTION_FUNCS in torrent.set_options 2014-01-18 22:59:16 +00:00
Calum Lind
58e9f66d64 flake8'd torrent.py 2014-01-18 22:14:14 +00:00
Calum Lind
7624683710 Add torrent.get_magnet_uri() to return generated magnet uri 2014-01-18 22:07:43 +00:00
Calum Lind
b5946c91ed Replace internal time_added with lt added_time 2014-01-18 21:10:31 +00:00
Calum Lind
246708e222 Add super_seeding to core 2014-01-18 21:10:23 +00:00
Calum Lind
3180bc7104 Use a tmp file when saving state and resume files 2014-01-18 15:54:43 +00:00
Calum Lind
d12f0365d5 Handle all-zeros KeyError for removed torrents alerts 2014-01-18 14:11:44 +00:00
Calum Lind
01d2ef84ba Fix issue with add_torrent_params flags 2014-01-17 23:43:53 +00:00
Calum Lind
2b64d78163 Remove leftover total_uploaded state code 2014-01-17 19:28:55 +00:00
Calum Lind
169b9b9898 Fixes for #607 : Add completed_time to core and Completed column in GTK UI 2014-01-17 19:17:18 +00:00
Calum Lind
0da6739f94 Fixes for #367 : Don't store last_seen_complete and total_uploaded in state file 2014-01-17 19:15:38 +00:00
Calum Lind
9e62304852 More removal of lt deprecated params and funcs
Due to a deprecation mistake get_settings() should be used for python
bindings and it will return a dict.
2014-01-17 18:29:53 +00:00
Calum Lind
da6d0ba7bf Replace lt deprecated session funcs with session_settings 2014-01-17 14:18:20 +00:00
Calum Lind
624f2f66cf Replace deprecated session.num_connections with session_status.num_peers
This commit removes get_num_connections() from core and updates UIs
to use get_session_status with num_peers key.

Extra noise is from Flake8 changes
2014-01-17 12:21:08 +00:00
Calum Lind
b0c3c3dddc Use non-deprecated libtorrent parameters and functions
Also added support for seed_mode
2014-01-17 10:48:42 +00:00
Calum Lind
8eb2155eac Remove torrent_status translations from Daemon and move to UI clients 2014-01-16 23:31:04 +00:00
Calum Lind
d260f6506f Remove unneeded LoopingCall import 2013-12-23 16:22:16 +00:00
bendikro
feaeee0379 Removed LoopingCall from torrent.py
Having a LoopingCall for each torrent is expencive with a lot of torrents.
The LoopingCall in torrent.py has been moved to torrentmanager.py
which runs through all the torrents and calls cleanup_prev_status.
2013-11-21 10:48:55 +00:00
Calum Lind
de3740fa70 Remove old code line 2013-11-20 23:26:29 +00:00
Calum Lind
63329e7199 Fix #265 : Add new Remaining column 2013-11-20 19:31:04 +00:00
Calum Lind
9d48d04f0f Fix #2338 : Spelling mistake with occurred 2013-06-09 02:30:26 +01:00
bendikro
19234d6565 Added some tests for rpcserver 2013-05-26 23:09:02 +01:00
bendikro
affe47a11c Cache items in get_filter_tree 2013-05-26 21:45:00 +01:00
bendikro
899c575ae8 Speedup in tracker_error_filter 2013-05-26 21:44:04 +01:00
bendikro
b76cdc2227 Fix 2247: AttributeError in deluge.error.DaemonRunningError
* Removed all the properties in error.py and added more tests
* Handle failure in client.py handling RPC_ERROR (From older daemons)
2013-05-26 15:25:39 +01:00
Calum Lind
a27b479f06 Fix some typos in my previous commits 2013-05-26 14:55:36 +01:00
Calum Lind
533228ff5e Fix overzealous legacy code removal from torrentmanager 2013-05-26 01:27:21 +01:00
Calum Lind
7dd276631a Add flake8 to setup.cfg and add missed change to #2303 fix 2013-05-22 23:33:06 +01:00
Calum Lind
e3f3b6d751 Cleanup torrentmanger code
* Remove legacy/old state file code
 * Passes flake8 cleanly
 * Most pylint messages dealt with
 * Code now uses >=Python 2.6 'with' and 'as' statements
2013-05-22 22:46:01 +01:00