|
|
@ -503,10 +503,10 @@ public class UtorrentAdapter implements IDaemonAdapter { |
|
|
|
} |
|
|
|
} |
|
|
|
// Add the parsed torrent to the list
|
|
|
|
// Add the parsed torrent to the list
|
|
|
|
TorrentStatus status = convertUtorrentStatus(tor.getInt(RPC_STATUS_IDX), downloaded); |
|
|
|
TorrentStatus status = convertUtorrentStatus(tor.getInt(RPC_STATUS_IDX), downloaded); |
|
|
|
long addedOn = tor.optInt(RPC_ADDEDON_IDX, -1) * 1000L; |
|
|
|
long addedOn = tor.optInt(RPC_ADDEDON_IDX, -1); |
|
|
|
long completedOn = tor.optInt(RPC_COMPLETEDON_IDX, -1) * 100L; |
|
|
|
long completedOn = tor.optInt(RPC_COMPLETEDON_IDX, -1); |
|
|
|
Date addedOnDate = addedOn == -1? null: new Date(addedOn); |
|
|
|
Date addedOnDate = addedOn == -1? null: new Date(addedOn * 1000L); |
|
|
|
Date completedOnDate = completedOn == -1? null: new Date(completedOn); |
|
|
|
Date completedOnDate = completedOn == -1? null: new Date(completedOn * 1000L); |
|
|
|
torrents.add(new Torrent( |
|
|
|
torrents.add(new Torrent( |
|
|
|
i, // No ID but a hash is used
|
|
|
|
i, // No ID but a hash is used
|
|
|
|
tor.getString(RPC_HASH_IDX), |
|
|
|
tor.getString(RPC_HASH_IDX), |
|
|
|