- Disabled file prioritizing for seeding torrents

- Added file prioritizing to Web UI
This commit is contained in:
Christophe Dumez 2009-11-24 15:38:47 +00:00
parent d4524993ee
commit aeb2c06e0f
10 changed files with 106 additions and 52 deletions

View file

@ -310,6 +310,15 @@ void HttpConnection::respondCommand(QString command)
emit resumeTorrent(parser.post("hash"));
return;
}
if(command == "setFilePrio") {
QString hash = parser.post("hash");
int file_id = parser.post("id").toInt();
int priority = parser.post("priority").toInt();
QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(h.is_valid()) {
h.file_priority(file_id, priority);
}
}
if(command == "pause") {
emit pauseTorrent(parser.post("hash"));
return;