Calum Lind
1acd6e4c1c
[Core] Refactor add method in tm
2015-09-01 11:28:39 +01:00
Calum Lind
7414737cbf
Tweaks to fastresume and state file saving
...
* Using move is not atomic on Windows so delete and rename instead.
* Open the file with no buffering
2015-08-31 15:47:38 +01:00
bendikro
9726481fb4
[ #2733 ] [Core] Fix on_alert_performance - UnicodeDecodeError
2015-02-23 12:43:27 +00:00
bendikro
08363f28dd
[ #2250 ] [Core] [GTKUI] Added method remove_torrents to core
...
Removing multiple torrents with remove_torrents will be faster
than calling remove_torrent for each torrent, as the state file
will be written only once, after all the torrents are deleted.
2014-12-03 16:46:24 +00:00
Calum Lind
dd8e37a6ce
Workaround for the isort Travis issue by using order-by-type
...
See isort issue: https://github.com/timothycrosley/isort/issues/185
2014-09-26 13:06:11 +01:00
Calum Lind
83262afda1
Flake8 codebase
...
Fixes error E265 and E714 that have been added to newest version of pep8
2014-09-22 12:46:18 +01:00
Calum Lind
9a801b4b93
Fix docstring errors raised by spinx docs build
2014-09-20 20:46:03 +01:00
Calum Lind
d0b8e17873
Add workarounds for isort
...
* Add workaround for unicodedata issue
* Change line length to 120
* Skip gtkui.py to stop it moving local imports above the install reactor line
2014-09-19 15:58:43 +01:00
Calum Lind
b5dcfc6f9e
Sort/prettify imports with isort
2014-09-03 18:27:32 +01:00
Calum Lind
af9fa15636
Replace use of status key 'tracker' with 'tracker_host' in UIs
...
* Status key tracker can be empty so use tracker_host instead, also tracker_host
is nicely formatted.
* Remove unneeded tracker_host string from tracker_status.
2014-08-19 15:39:12 +01:00
Calum Lind
1700b75cfe
Fix firing of Finished event when moving
2014-08-16 22:49:13 +01:00
Calum Lind
97533145a7
Revert "Fix strange resume_data bug causing fastresume not save on shutdown"
...
This reverts commit 2449f5b99e2f2eb3c5b982c0e02705e94daf5166.
2014-08-13 21:32:46 +01:00
Calum Lind
66ae8bdd5c
[ #1294 ] [GTKUI] [WebUI] Add Skip File Hash Check
...
* Altered the core code so that seed_mode is now a torrent option.
* Made some minor improvments to the Add Dialog
2014-08-10 14:27:47 +01:00
Calum Lind
dc7a4df39a
More changes for consistent naming of download location
2014-08-09 15:04:14 +01:00
Chase Sterling
59f82f204f
Oops, accidentally renamed a variable
2014-07-31 23:20:38 -04:00
Chase Sterling
02cfc40e94
Fix move completed sometimes not moving finished torrents
2014-07-31 23:16:30 -04:00
Chase Sterling
b9338a639e
Fix issue restoring torrent state
2014-07-31 22:09:23 -04:00
Calum Lind
480347296b
Fix a mistake in tm finished alert
2014-07-19 20:08:47 +01:00
Calum Lind
49c2be40ab
Use flush_disk_cache as a shutdown marker
...
This is a hacky fix for waiting_on_resume_data not being empty on
shutdown. This issue needs further investigating.
2014-07-18 13:25:50 +01:00
Calum Lind
a65603e10c
[ #1032 ] Keep track of torrent errors over restarts
...
* Add error_statusmsg to TorrentState
* Adds a new set_error_statusmsg() method to force torrent error state.
* Any torrent in error state will remain in that state on restart with
additional message in status.
* Any new libtorrent errors will override manually set ones.
2014-07-18 13:08:47 +01:00
Calum Lind
7393d31208
Refactor TorrentState to build the class attributes
2014-07-18 12:46:56 +01:00
Calum Lind
c82164c522
[ #2161 ] Save magnet torrent_info to 'copy of' location
...
When magnet metadata is received a torrent file will also be written
to 'copy of' location if requested.
Modified the code for saving torrent file to state in Torrent class for
use by TorrentManager.
2014-07-18 00:35:26 +01:00
Calum Lind
9347a78482
Refactor and tidyup code in torrent.py
2014-07-17 21:55:57 +01:00
Calum Lind
2449f5b99e
Fix strange resume_data bug causing fastresume not save on shutdown
2014-07-17 00:11:15 +01:00
Calum Lind
b3e323462c
Change logging of 'creating backup' to debug level
2014-07-16 21:25:05 +01:00
Calum Lind
8685c7a604
Show actual error in status from storage_moved_failed_alert
2014-07-16 18:07:12 +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
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
7aa52e5f1b
Prevent private flagged torrents auto-merging trackers
...
When adding a torrent already in session any new trackers are merged
to the exiting torrent but this is an unwanted feature for private
flagged torrents.
2014-07-07 23:33:45 +01:00
bendikro
dfed6af0c0
Fixes to resume data saving routines.
...
* Avoid saving resume data unecessarily by checking the queue of calls
* Removed unecessary LoopingCall for resume data
2014-03-10 14:03:06 +00: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
f2535e196d
Let save_resume_data build torrent list on stopping session
...
By having the func build the list we can skip torrents that we already have
resume data for (need_save_resume_data is False).
2014-02-25 18:57:59 +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
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
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
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
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