Calum Lind
25c7e40574
[ #2347 ] Add orig_files to core
2014-07-17 21:55:51 +01:00
Calum Lind
62cca045be
[ #637 ] Add a Moving storage state along with progress
...
Uses attr Torrent.moving_storage for now but can be replaced with
future lt1.0 status field.
Refactored the code to use the common.TORRENT_STATE list.
Added a translating dict to ui.common to aid translation of state text.
2014-07-16 17:43:12 +01:00
Calum Lind
8920db694c
Use true division 'from __future__ import division'
2014-07-16 17:43:11 +01:00
Calum Lind
d51ad7718c
Update TorrentManager docstrings and remove old load_torrent method
...
Passes flake8 and mostly passes pylint
2014-07-15 15:26:35 +01:00
Calum Lind
7b44980912
[ #1126 ] [ #2322 ] Emit FinishedEvent after moving storage complete
...
Also changed the Execute and Extractor plugins to process the updated
FinishedEvent functionality.
2014-07-13 14:11:47 +01:00
Calum Lind
bc7380c5d7
Add flush_disk_cache parameter to save_resume_data
...
Using this flag avoids potential issue with file timestamps and
is only needed when stopping the session.
2014-02-25 19:00:50 +00:00
Calum Lind
3d4acf7d37
Update docstrings in torrent.py
2014-02-21 10:35:31 +00:00
Calum Lind
9290cc1f7a
Fix building the code documentation with sphinx
...
Updated Sphinx conf and tested with Sphinx 1.2.1
Moved webui gen_gettext script
Fixed docstring warning in code
Renamed console update-tracker to update_tracker
2014-02-20 17:38:51 +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
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
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
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
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
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
63329e7199
Fix #265 : Add new Remaining column
2013-11-20 19:31:04 +00:00
bendikro
e6498b6864
Fix #2277 : Plugins keys weren't fetched in filter_torrent_ids
...
Fixed bug introduced in 8c106ce8c4c0794ddd63e8e8f98b097221a56a52
where keys for plugins weren't fetched in filter_torrent_ids.
2013-05-03 18:00:37 +01:00
Chase Sterling
289730a3e3
Make sure prioritize first/last doesn't enable pieces in
...
a file marked do not download. refs #2211
2013-04-29 18:07:04 -04:00
Calum Lind
1d34d5f6a5
Fix #1840 : Refactor last_seen_complete code
2013-04-29 22:32:01 +01:00
Chase Sterling
36d8c5517f
Fix renaming folders on libtorrent 0.16 compiled with unicode support (Windows)
2013-02-11 21:26:16 -05:00
Chase Sterling
b08573831e
Merge remote-tracking branch 'bro/master-torrent-encoding-cleanup'
2013-02-11 21:07:11 -05:00
bendikro
41e3b01285
Removed redundant has_metadata function from torrent.py
2013-02-11 20:17:32 -05:00
bendikro
31ecaacbc8
Replaced ti_-functions with lambdas
2013-02-12 01:21:32 +01:00
bendikro
5bcb104a01
Cleaned up torrents.py and small change to decode_string
...
Replaced some try/except-decoding with decode_string.
Removed redundant methods ti_name and apply_options.
In decode_string - changed last encoding (with ignore) from
chardet-detected to the encoding specified in key-argument.
2013-02-12 01:14:57 +01:00
Chase Sterling
c11262082e
Fix an issue with daemon speedups with file priorities for magnets
...
Ensure prioritize_first_last gets set properly for magnets
2013-02-10 23:57:46 -05:00
bendikro
0f67dc168b
Improvements and bug fixes
2013-01-15 23:40:53 +01:00
bendikro
5cd86aa5bc
Optimizations to daemon and rpc messages.
...
* Implemented torrent updates with libtorrent post_torrent_updates.
This required some changes to how core/torrenthandler
handles get_torrent_status
* Reworked how torrent.py handles torrent info
* Removed some unneeded RPC message requests from client.
* Added tests for some expensive log prints.
2013-01-14 03:14:28 +01:00
bendikro
6313ff19b3
Improved the speed of set_prioritize_first_last in torrent.py
...
set_prioritize_first_last is rewritten for better performance, and is now only called when necessary. It should now properly set the priority for the beginning and end of each file in the torrent.
2013-01-02 20:20:25 -05:00
Chase Sterling
25efa5437b
Update folder rename to use deferreds.
2012-12-07 22:50:53 -05:00
Chase Sterling
ce99b5f688
Refactor resume data saving to not read and write fastresume unnecessarily.
...
Refactor saving resume data on shutdown to use deferreds.
Make bulk resume data saves write to disk only once.
2012-12-07 22:22:12 -05:00
Chase Sterling
e79c695732
Remove some backwards compatibility code for libtorrent 0.14.
2012-12-03 01:18:25 -05:00
Chase Sterling
b4903b763e
Fix torrent names on libtorrent 0.16 on windows.
2012-11-29 23:26:37 -05:00
Chase Sterling
4579886bb5
Fix file renaming and moving with unicode characters on libtorrent 0.16
...
Fix torrent creation with unicode characters
2012-11-26 17:18:41 -05:00
Chase Sterling
9d28aa9521
Fix bug in prioritize_first_last, also fixes selective downloading. refs #2211
2012-11-13 01:36:04 -05:00
Chase Sterling
8298a93dcc
Make path separators in Torrent.get_files consistent across platforms.
2012-11-12 21:27:08 -05:00
Andrew Resch
9055019cc2
Fix previous commit
2012-09-18 17:59:01 -07:00
Andrew Resch
532b409a54
Only convert the move path to unicode if on windows
2012-09-14 15:55:28 -07:00