small fix for last

This commit is contained in:
Marcos Pinto 2007-08-14 19:17:00 +00:00
parent 751dc5bf2b
commit 1a3b381164

View File

@ -1894,7 +1894,7 @@ static PyObject *torrent_set_max_upload_slots_per_torrent(PyObject *self, PyObje
static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args) static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args)
{ {
python_long unique_ID; python_long unique_ID;
std::string address; char *address;
if (!PyArg_ParseTuple(args, "is", &unique_ID, &address)) if (!PyArg_ParseTuple(args, "is", &unique_ID, &address))
return NULL; return NULL;
@ -1904,7 +1904,6 @@ static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args)
torrent_t &t = M_torrents->at(index); torrent_t &t = M_torrents->at(index);
t.handle.add_url_seed(address); t.handle.add_url_seed(address);
return Py_None; return Py_None;
} }
@ -1914,7 +1913,7 @@ static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args)
static PyMethodDef deluge_core_methods[] = static PyMethodDef deluge_core_methods[] =
{ {
{"add_url_seed", torrent_pe_settings, METH_VARARGS, "."}, {"add_url_seed", torrent_add_url_seed, METH_VARARGS, "."},
{"pe_settings", torrent_pe_settings, METH_VARARGS, "."}, {"pe_settings", torrent_pe_settings, METH_VARARGS, "."},
{"pre_init", torrent_pre_init, METH_VARARGS, "."}, {"pre_init", torrent_pre_init, METH_VARARGS, "."},
{"init", torrent_init, METH_VARARGS, "."}, {"init", torrent_init, METH_VARARGS, "."},