157 Commits

Author SHA1 Message Date
Andrew Resch
27ffaab15b Change core methods to use a list of torrent_ids. 2008-02-21 20:23:02 +00:00
Andrew Resch
1f5d9a10c1 Expose reset_ip_filter() to plugins. 2008-02-21 04:20:30 +00:00
Andrew Resch
361a276da4 Add reset_ip_filter() to core. 2008-02-21 04:19:13 +00:00
Andrew Resch
2eec78f9fb Expose block_ip_range() to plugins. 2008-02-17 05:51:07 +00:00
Andrew Resch
c9caab1b4d Add block_ip_range() in core and expose it in client. 2008-02-17 05:46:51 +00:00
Martijn Voncken
ed7b75b956 fix move,fix add using url 2008-02-16 10:33:40 +00:00
Martijn Voncken
6b49e4e623 extra status fields for torrent options 2008-02-16 08:25:24 +00:00
Andrew Resch
9db2824bfe Expose set_torrent_max_connections(), set_torrent_max_upload_slots(),
set_torrent_max_upload_speed(), set_torrent_max_download_speed(), 
set_torrent_private_flag(), set_torrent_file_priorities().
2008-02-15 23:14:15 +00:00
Andrew Resch
9bb58d498c Remove some cruft. 2008-02-12 21:48:58 +00:00
Andrew Resch
4c2ec1b8fb Change torrent saving/loading to use torrent options and update the
state format to support new options.
Some minor modifications to CoreProxy in client -- only run the 
do_multicall timer when 'connected' to a core.
2008-02-12 21:29:39 +00:00
Andrew Resch
dfaf263d66 Fix preferences to actually set global per torrent download/upload
speeds.
Apply global per torrent download/upload speeds to all torrents on 
change.
2008-02-12 19:51:45 +00:00
Andrew Resch
9beda7c96e Return a full status, including functions, when len(keys) is 0. 2008-02-12 02:42:09 +00:00
Andrew Resch
d32ffa7ace Remove shutdown() from TorrentManager because stop() is already called
during a component shutdown.
2008-02-11 03:13:07 +00:00
Sadrul Habib Chowdhury
e95be5d131 Prevent an exception when multiple signals are tried to send to an unreachable client. 2008-02-10 13:39:47 +00:00
Sadrul Habib Chowdhury
e554140276 Do not try to send signals to a client after 30 consecutive failures. 2008-02-10 13:29:01 +00:00
Andrew Resch
cb59fd31aa More resume/pause all fixes. 2008-02-09 03:37:42 +00:00
Andrew Resch
c7c1ea26f9 Fix resuming all torrents. 2008-02-08 22:51:41 +00:00
Andrew Resch
ae792ccb21 Split up function calls in get_torrent_status() and add 'file_progress'
key.  Patch from Sadrul.
2008-02-08 05:43:14 +00:00
Andrew Resch
6342fe2e08 Set file_priorities default value to [] if not priorities have been set. 2008-02-07 23:19:17 +00:00
Andrew Resch
055e42776a Fix last. 2008-02-07 22:55:04 +00:00
Andrew Resch
1f3452277a Add 'file_priorities' status key to torrent. 2008-02-07 22:53:51 +00:00
Andrew Resch
9a1d5e9bfa Allow incomplete options dictionaries when adding a torrent. The
missing keys will be replaced by defaults.
2008-02-07 07:20:17 +00:00
Andrew Resch
ea49afb9c3 Fix tracker scraping in tracker_reply_alert. 2008-02-03 16:28:06 +00:00
Andrew Resch
9469610aca Use new torrent states instead of using libtorrent's. 2008-02-02 01:30:18 +00:00
Marcos Pinto
f757593146 add dht nodes to status bar 2008-01-29 06:58:23 +00:00
Andrew Resch
d1677a855f Fix debug message. 2008-01-26 13:24:42 +00:00
Andrew Resch
a55dcc8099 Catch RuntimeErrors in load_torrent(). These are likely due to bad
torrent files.
2008-01-26 07:10:39 +00:00
Andrew Resch
c1710ca0f4 Add the ability to set file priorities for torrents in the core.
The Add Torrent dialog now sets proper file priorities based on user 
input.
2008-01-25 02:55:48 +00:00
Andrew Resch
468e51c72b Fix deregistering signal receivers in the core. 2008-01-24 01:31:48 +00:00
Andrew Resch
3a47731483 Default to Random Ports. 2008-01-22 03:57:46 +00:00
Marcos Pinto
6cb3b2b9e0 add move torrent 2008-01-21 22:38:58 +00:00
Andrew Resch
1a0718b4ac Update 'save_path' on storage_moved_alert. 2008-01-21 22:24:31 +00:00
Andrew Resch
80514ad829 Fix last commit.
Use 'config_value_changed' signal from core to get config value updates 
instead of polling every update for StatusBar and SystemTray.
2008-01-20 21:37:11 +00:00
Andrew Resch
d965adff82 Disconnect from Gnome session during shutdown. 2008-01-20 02:49:25 +00:00
Andrew Resch
5d1dbc98e5 Give the Queue plugin some love. 2008-01-20 02:37:26 +00:00
Andrew Resch
28a4883a72 Fix signals. 2008-01-20 01:00:39 +00:00
Andrew Resch
76a0eb12e8 Do not make Core a thread anymore as it is not needed. 2008-01-20 00:56:42 +00:00
Marcos Pinto
f042bf0dda use die in signal 2008-01-20 00:46:52 +00:00
Marcos Pinto
bf26a9ef50 import signal and fix shutdown call 2008-01-20 00:38:36 +00:00
Andrew Resch
1fa301cb69 Change client.py to use multicalls. This forces all client methods to
be async.
2008-01-19 22:33:30 +00:00
Andrew Resch
7e03f82d73 Import proper xmlrpclib. 2008-01-19 16:47:46 +00:00
Andrew Resch
eaddaaa844 Fix adding torrents by URL. 2008-01-14 08:46:44 +00:00
Andrew Resch
5c485afe5e Make new add torrent dialog actually work, but still needs work. 2008-01-07 02:18:40 +00:00
Andrew Resch
39e987d5da Improve get_torrent_status() speed by only building the files dictionary
when the Torrent object is created.
2008-01-02 11:54:42 +00:00
Andrew Resch
aa932b56a7 Fix crash when trying to add a bad .torrent. 2007-12-30 04:00:53 +00:00
Andrew Resch
e069542e3a Fix allocation modes. They were reversed. 2007-12-28 13:20:34 +00:00
Andrew Resch
c8508c8d15 Use an asynchronous batch torrent status method for updating the
torrentview list.
Other various minor stuff.
2007-12-28 05:29:54 +00:00
Andrew Resch
e2e3073f23 Fix last. 2007-12-27 10:56:18 +00:00
Andrew Resch
91c55522b8 Optimize torrent.get_status() a bit.
Emit signals with gobject.idle_add().
2007-12-27 10:54:05 +00:00
Andrew Resch
8271d70ec7 Plugin system changes in regards to enabling/disabling plugins. 2007-12-11 04:45:47 +00:00