diff --git a/src/core.py b/src/core.py index 290af286d..3984c47c8 100644 --- a/src/core.py +++ b/src/core.py @@ -644,7 +644,7 @@ class Manager: # Now to check and see if there is enough free space for the download size = deluge_core.get_torrent_state(unique_ID)["total_size"] avail = self.calc_free_space(torrent.save_dir) - print "Torrent Size", size +# print "Torrent Size", size # print "Available Space", avail # size = avail + 1 #debug! if size > avail: # Not enough free space @@ -686,7 +686,6 @@ class Manager: # run through queue, remove those that no longer exists to_delete = [] for queue_item in self.state.queue: - print "queue_item", queue_item if queue_item not in self.unique_IDs.keys(): to_delete.append(queue_item) for del_item in to_delete: @@ -694,9 +693,6 @@ class Manager: assert(len(self.unique_IDs) == len(self.state.torrents)) - print "Debug 1", self.unique_IDs, self.state.queue - print "Debug 2", len(self.unique_IDs), len(self.state.queue) - assert(len(self.unique_IDs) == len(self.state.queue)) assert(len(self.unique_IDs) == deluge_core.get_num_torrents()) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index f9d4f85df..fa54a49c8 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -1239,15 +1239,14 @@ static PyObject *torrent_pe_settings(PyObject *self, PyObject *args) libtorrent::pe_settings::enc_level level; PyArg_ParseTuple(args, "iiii", &out, &in, &level, &prefer); + M_pe_settings->out_enc_policy = out; - printf("out policy is %d\r\n", M_pe_settings->out_enc_policy); M_pe_settings->in_enc_policy = in; - printf("in policy is %d\r\n", M_pe_settings->in_enc_policy) ; M_pe_settings->allowed_enc_level = level; - printf("level is %d\r\n", M_pe_settings->allowed_enc_level); M_pe_settings->prefer_rc4 = prefer; - printf("prefer rc4 is %d\r\n", M_pe_settings->prefer_rc4); + M_ses->set_pe_settings(*M_pe_settings); + return Py_None; } diff --git a/src/dialogs.py b/src/dialogs.py index 22d3ed0d4..e8b75f926 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -136,7 +136,7 @@ class PluginDlg: def show(self): self.store.clear() for plugin in self.plugins.get_available_plugins(): - print plugin + #print plugin if plugin in self.plugins.get_enabled_plugins(): self.store.append( (plugin, True) ) else: diff --git a/src/interface.py b/src/interface.py index d279b4195..6ed5451d6 100644 --- a/src/interface.py +++ b/src/interface.py @@ -136,7 +136,7 @@ class DelugeGTK: pass enable_plugins = self.config.get('enabled_plugins', str, default="").split(':') - print enable_plugins + for plugin in enable_plugins: try: self.plugins.enable_plugin(plugin) @@ -405,8 +405,8 @@ class DelugeGTK: return True def torrent_view_clicked(self, widget, event): - print widget - print event +# print widget +# print event if event.button == 3: x = int(event.x) y = int(event.y) @@ -511,7 +511,6 @@ class DelugeGTK: while itr is not None: file_filter.append(not self.file_store.get_value(itr, 0)) itr = self.file_store.iter_next(itr) - print file_filter self.manager.set_file_filter(self.get_selected_torrent(), file_filter) def show_about_dialog(self, arg=None):