724 Commits

Author SHA1 Message Date
Calum Lind
5e1874eb8d Revert "[#1032] Keep track of torrent errors over restarts"
This reverts commit 2c54c696a1bb31a107f86c72341471c76b2fb0c2.

This is not working as I intended, will hopefully commit a revised version to 1.3-stable.
2014-10-03 15:26:50 +01:00
Calum Lind
c982e8de67 Revert "Fix #2221 : Addtorrentdialog KeyError accessing download_location"
This reverts commit 686fb3184480527d81ecc2e399b24ae676e7a1e8.
2014-08-31 14:56:38 +01:00
Calum Lind
223c9319c7 Fix firing of Finished event when moving 2014-08-16 22:50:02 +01:00
Calum Lind
54eb28a097 Backport decode_string from develop 2014-08-04 22:05:30 +01:00
Calum Lind
2c54c696a1 [#1032] Keep track of torrent errors over restarts 2014-08-04 19:09:38 +01:00
Calum Lind
fed5221503 [#1126] [#2322] Emit FinishedEvent after moving storage complete
Also changed the Execute and Extractor plugins to process the updated
FinishedEvent functionality.
2014-07-19 23:04:31 +01:00
Calum Lind
c0650f88d1 Fix to mitigate fastresume corruption
The code in develop is more robust but by writing to a temp file first
then moving it should stop the worst of fastresume corruption issues,
e.g. hard resets.
2014-07-19 20:16:51 +01:00
Calum Lind
34650f4b3c 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:27:50 +01:00
Calum Lind
d6b44afb99 [#1490] Increase the Alertmanager interval to 0.3s
The original 0.05 interval is causing excessive idle cpu usage
2014-07-04 19:17:16 +01:00
Calum Lind
29d3e72f49 [#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-18 19:34:31 +00:00
Calum Lind
d04af1e392 [#2343] Fix error if listen interface is whitespace
Whitespace in the interface dialog is not obvious to the user so
strip in core to prevent error from bad config
2014-02-18 19:22:12 +00:00
Calum Lind
3cc43f63a0 Fix #2338 : Spelling mistake with occurred 2013-06-09 02:35:10 +01:00
Calum Lind
5057e2caab Fix #2303 : Torrent state not updated until after emitting TorrentFinishedEvent 2013-05-22 23:18:01 +01:00
Calum Lind
686fb31844 Fix #2221 : Addtorrentdialog KeyError accessing download_location
Sets a default value of None for any missing config keys
2013-05-09 19:02:34 +01:00
Calum Lind
03d5654a16 Fix #2324 : Encryption level set by deluge does not match libtorrent values
The clients are using range (0-2) whereas actual bit values are (1-3)
2013-05-09 19:00:33 +01:00
Chase Sterling
8911600155 Fix prioritize first/last pieces for magnet links 2013-02-11 22:09:46 -05:00
Chase Sterling
c58221c866 Fix renaming folders on libtorrent 0.16 compiled with unicode support (Windows) 2013-02-11 21:36:46 -05:00
Calum Lind
b9311d4b57 Add exception details to EventManager error log 2013-02-05 19:29:25 +00:00
Calum Lind
b0d78da13b Fix #2258 : Potential runtimeError when emiting event 2013-02-05 18:56:18 +00:00
Chase Sterling
93dee4c764 Don't deliver empty resume_data parameter to session.add_torrent
Fixes a libtorrent crash on python 2.7 on Windows
2013-01-17 22:08:56 -05:00
Calum Lind
70047c367a fix error in #2085 commit 3ca886ac7ad5: value may be a tuple 2012-12-11 00:57:48 +00:00
Calum Lind
3ca886ac7a Fix #2085 : WebUI: Does not show torrents in sidebar for categories other than 'All'
unicode value in filter_dict would not be converted into a list
2012-12-10 15:48:38 +00:00
Calum Lind
7cc8243849 Use try-except instead of if statement to gain a little performance 2012-12-09 22:57:00 +00:00
Pedro Algarvio
b5ea33e506 On some "race" conditions, the torrent is removed before it's status could be retrieved. Return an empty status. 2012-12-09 22:31:22 +00:00
Chase Sterling
9286d43ba8 Increase libtorrent alert queue size. fix #2204 2012-12-07 23:10:09 -05:00
Chase Sterling
fc4ca861da Fix libtorrent version check in torrent.py. fix #2223 2012-12-03 01:14:17 -05:00
Chase Sterling
4307699bbf Fix torrent names on libtorrent 0.16 on windows. 2012-11-26 19:42:36 -05:00
Calum Lind
e7a2a8dcee Fix #2109 : Proxy settings not being cleared by setting None 2012-11-26 22:03:54 +00:00
Calum Lind
508b5aed8f Fix #2201 : auth fails if auth file has extra newlines 2012-11-25 23:30:13 +00:00
Chase Sterling
666bb09513 Make sure queue order is preserved when restarting daemon. 2012-11-21 02:14:12 -05:00
Chase Sterling
7d88cb1850 Fix file renaming and moving with unicode characters on libtorrent 0.16
Fix torrent creation with unicode characters

Update changelog
2012-11-21 01:25:18 -05:00
Chase Sterling
d825be4901 Make path separators in Torrent.get_files consistent across platforms. 2012-11-12 21:12:54 -05:00
Nikita Nemkin
8a72187998 Replaced WMI process enumeration with the EnumProcesses API call. (Shorter, faster, does not depend on pythoncom.) 2012-11-06 22:30:19 +00:00
Calum Lind
a64fe05890 Ensure torrent_ids is a list
If torrent_ids is created from filter_dict it is a tuple. This results
in an error when attempting to remove a torrent_id from torrent_ids
later on in 'leftover filter args' and 'filter_state_active()'.
2012-10-12 23:48:40 +01:00
Calum Lind
37ea2854a2 Fix 2160 : Disable use of python bindings for libtorrent extensions and replace with session flag
The fixes a GIL issue causing libtorrent segfault. https://code.google.com/p/libtorrent/issues/detail?id=369

Note: The ut_pex plugin (Peer Exchange) will now always be enabled.
2012-09-27 17:56:13 +01:00
Andrew Resch
3309f59333 Fix previous commit 2012-09-18 17:59:54 -07:00
Andrew Resch
fc14b00868 Only convert the move path to unicode if on windows 2012-09-14 15:56:13 -07:00
Andrew Resch
3569e18712 Don't clobber filename when adding torrents with mapped_files 2012-08-21 18:31:59 -07:00
Andrew Resch
42118932f2 Fix exception handling 2012-08-06 15:54:28 -07:00
John Garland
914413c88f Catch & log KeyError when removing a torrent from the queued torrents set
This seems to happen due to libtorrent firing the torrent finished event
twice.
2012-04-12 23:52:50 +10:00
Calum Lind
56a24f16f2 Only assign prioritize_first_last_pieces to torrent options if actually changed 2012-03-26 17:06:51 +01:00
John Garland
b9030dfb8b Preserve order when moving multiple torrents in the queue 2012-03-12 23:46:19 +11:00
John Garland
3528549430 Add get_queue_position & use it for sorting ids 2012-03-12 23:46:19 +11:00
John Garland
39a04aae20 Fix not properly detecting when torrent is at end of queue 2012-03-12 23:45:51 +11:00
Calum Lind
9ce738e39a Fix adding magnet error in webui when started from classic mode 2012-03-03 23:41:24 +00:00
Andrew Resch
0676aaf918 Properly wait for the component.shutdown deferred on shutdown. This should prevent the daemon from exiting before all the state has been saved. 2012-03-02 09:15:35 -08:00
Andrew Resch
2ae936df44 Remove setting torrent.is_finished in the resume alert
Set torrent.is_finished to false when torrent is in a Checking or Downloading state
2012-02-29 15:20:59 -08:00
Calum Lind
1f5cfd16e0 Updates to previous fixes for setting is_finished 2012-02-29 02:56:14 +00:00
Calum Lind
1f660653ff Set is_finished to match is_seed after checking
Fixes issue where re-downloading data would not change is_finished
2012-02-29 01:35:33 +00:00
Calum Lind
e7dada6afc Fix #2021 : Share ratio limit not obeyed for torrents downloaded outside deluge
Share ratio limit is based upon torrent.is_finished and a seeded torrent added
to the session was not set after checking.
2012-02-27 15:31:53 +00:00