945 Commits

Author SHA1 Message Date
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
bendikro
2aaae7c6a1 [#2406] [Core] [GTKUI] Implement core.add_torrent_files
* Speeds up adding multiple torrents
2014-12-03 15:36:06 +00:00
Calum Lind
3689eb508e [#2555] [Core] Disable use of SSLv3 for DelugeRPC 2014-11-20 15:19:09 +00:00
Calum Lind
af95fb0828 [Core] Remove old windows cache fix
This removes a fix for #1869 (using 0.15 lt) that is now fixed properly in 0.16 lt.
2014-11-18 10:13:55 +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
142e96b246 Autopep8 E265 2014-09-22 12:46:17 +01:00
Calum Lind
9a801b4b93 Fix docstring errors raised by spinx docs build 2014-09-20 20:46:03 +01:00
Calum Lind
fc9017cfb1 Update with new license header 2014-09-19 19:21:42 +01:00
Calum Lind
30a0f3c9ed Flake8 pass of entire codebase
* Use the inline '# NOQA' to supress N802 lower-case warnings
2014-09-19 19:10:14 +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
5167e93d12 Flake8 core and common files
* Added N802 to flake8 ignore as certain inherited funcs cannot be changed
   to lowercase and this unresolved warning hides other errors/warnings.
 * Include new header
2014-09-03 23:48:34 +01:00
Calum Lind
b5dcfc6f9e Sort/prettify imports with isort 2014-09-03 18:27:32 +01:00
Calum Lind
1ca08ccf95 [Python-Modernize] Replace im_self with __self__ 2014-09-03 17:22:39 +01:00
Calum Lind
1e6c811768 [Python-Modernize] lib2to3.fixes.fix_except
* Use 'ex' instead of 'e' to conform with pylint
 * Minimal Flake8 on some files
2014-09-03 17:22:38 +01:00
Doadin
184d6be98d [#2472] Add support for anonymous_mode 2014-09-01 21:57:09 +01:00
Calum Lind
2df2f882e0 Use list comprehension in get_file_progress
Should be slightly quicker with large numbers of files.

Also moved socket import to the top as it will always be imported.
2014-08-24 11:01:37 +01:00
Calum Lind
4ad45b2d4a No need to use get_status in Torrent class 2014-08-23 22:22:09 +01:00
Calum Lind
b4b58380b6 Refactor Torrent _get_pieces_info method
Code is now easier to read and should be a bit faster
2014-08-23 22:22:09 +01:00
Calum Lind
14776d86f5 Remove duplicate i2p_proxy entry 2014-08-21 13:41:33 +01:00
Calum Lind
1de0c30bb0 Disable SSL listen port 2014-08-21 13:40:07 +01:00
Calum Lind
b296803e01 Use int function to cast proxy type 2014-08-20 16:58:25 +01:00
Calum Lind
68b893fa02 Log errors for invalid interface values 2014-08-20 16:55:07 +01:00
Calum Lind
068cce353a Code cleanup for core files 2014-08-20 15:10:59 +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
061590665e Remove obsolete set_state method 2014-08-19 15:39:12 +01:00
Calum Lind
49ed3db352 Replace try statement for LT_TORRENT_STATE_MAP lookup 2014-08-19 14:31:00 +01:00
Calum Lind
32330f99fc Flake8 core files 2014-08-19 14:22:19 +01:00
Calum Lind
1700b75cfe Fix firing of Finished event when moving 2014-08-16 22:49:13 +01:00
Calum Lind
64d06f5650 Fix showing wrong state for finished torrent 2014-08-13 22:45:53 +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
8c6758720d Replace pause_all with pause_session
* Replace pause_all and resume_all with pause_session and resume_session
 * Pausing all the torrents individually loses the original paused status
   so use the libtorrent session pause instead.
 * Added a SessionPausedEvent to the method.
2014-08-12 18:21:12 +01:00
Calum Lind
d0718df82b Refactor torrent.update_state 2014-08-12 00:31:00 +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
Calum Lind
713e264061 Fix for moving progress with no data downloaded 2014-08-08 19:26:37 +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
205444f670 [WebUI] Fix json import 2014-07-22 23:34:19 +01: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
e30e2ef2c3 Fix mistake in convert_lt_files 2014-07-18 00:03:11 +01:00
Calum Lind
9347a78482 Refactor and tidyup code in torrent.py 2014-07-17 21:55:57 +01:00
Calum Lind
25c7e40574 [#2347] Add orig_files to core 2014-07-17 21:55:51 +01:00
Calum Lind
2449f5b99e Fix strange resume_data bug causing fastresume not save on shutdown 2014-07-17 00:11:15 +01:00