diff --git a/ChangeLog b/ChangeLog index 61689a90..4961a2ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-13 Tatsuhiro Tsujikawa + + Added web-seeding URI handling in addTorrent command. + * src/XmlRpcMethodImpl.cc + 2009-05-13 Tatsuhiro Tsujikawa Added "length" key to getFiles response. diff --git a/src/XmlRpcMethodImpl.cc b/src/XmlRpcMethodImpl.cc index 60b06c72..3c478efe 100644 --- a/src/XmlRpcMethodImpl.cc +++ b/src/XmlRpcMethodImpl.cc @@ -113,7 +113,15 @@ BDE AddTorrentXmlRpcMethod::process throw DlAbortEx("Torrent data is not provided."); } - // TODO should accept uris from xml rpc request + std::deque uris; + if(params.size() > 1 && params[1].isList()) { + for(BDE::List::const_iterator i = params[1].listBegin(); + i != params[1].listEnd(); ++i) { + if((*i).isString()) { + uris.push_back((*i).s()); + } + } + } SharedHandle