I need a little help as I'm not a very experienced programmer.
I tried to upgrade to 2.41 from 2.33, but the web interface I use constantly marks seeding torrents as "Done" and shows them stopped.
I saw that values of "status" field changed in the latest release, but I couldn't find what are these new values.
The only thing I could come up is these Seeding torrents' statuses changed to 6 from 8.
I tried to insert the code to the PHP like this, but nothing happens.
Anyone could give me some help, what have I missed?
Code: Select all
/*
* Convert RPC Status to TorrentFlux running
*/
public function status_to_tf($status) {
// 1 - waiting to verify
// 2 - verifying
// 4 - downloading
// 5 - queued (incomplete)
// 6 - something new status!!
// 8 - seeding
// 9 - queued (complete)
// 16 - paused
switch ((int) $status) {
case 1:
case 2:
case 4:
case 5:
$tfstatus=1;
break;
case 6:
case 8:
case 9:
$tfstatus=1;
break;
case 0:
case 16:
default:
$tfstatus=0;
};
//0: Stopped
//1: Running
//2: New
//3: Queued (Qmgr)
return $tfstatus;
}