@ -474,6 +474,7 @@ public class BitCometAdapter implements IDaemonAdapter {
@@ -474,6 +474,7 @@ public class BitCometAdapter implements IDaemonAdapter {
distributed_copies,
comment,
dateAdded,
null,
null));
}
}
@ -550,6 +551,7 @@ public class BitCometAdapter implements IDaemonAdapter {
@@ -550,6 +551,7 @@ public class BitCometAdapter implements IDaemonAdapter {
0f,
label,
dateAdded,
null,
null));// Not supported in the web interface
id++;// Stop/start/etc. requests are made by ID, which is the order number in the returned XML list :-S
@ -280,6 +280,7 @@ public class BuffaloNasAdapter implements IDaemonAdapter {
@@ -280,6 +280,7 @@ public class BuffaloNasAdapter implements IDaemonAdapter {
@ -374,7 +374,8 @@ public class DLinkRouterBTAdapter implements IDaemonAdapter {
@@ -374,7 +374,8 @@ public class DLinkRouterBTAdapter implements IDaemonAdapter {
@ -392,6 +392,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -392,6 +392,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
(float)progress,
0f,
null,
null,// Only available in /json/propertiesGeneral on a per-torrent basis, unfortunately
@ -299,6 +299,7 @@ public class RtorrentAdapter implements IDaemonAdapter {
@@ -299,6 +299,7 @@ public class RtorrentAdapter implements IDaemonAdapter {
0f,// TODO: Add availability data
null,// See remark on rTorrent/groups above
newDate((Long)info[11]),
null,
error));
}else{
@ -327,6 +328,7 @@ public class RtorrentAdapter implements IDaemonAdapter {
@@ -327,6 +328,7 @@ public class RtorrentAdapter implements IDaemonAdapter {
@ -113,7 +113,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent> {
@@ -113,7 +113,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent> {
@ -136,6 +136,9 @@ public final class Torrent implements Parcelable, Comparable<Torrent> {
@@ -136,6 +136,9 @@ public final class Torrent implements Parcelable, Comparable<Torrent> {
this.label=label;
this.dateAdded=dateAdded;
if(realDateDone!=null){
this.dateDone=realDateDone;
}else{
Calendarcal=Calendar.getInstance();
if(eta==-1||eta==-2){
cal.clear();
@ -144,6 +147,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent> {
@@ -144,6 +147,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent> {
@ -498,7 +498,8 @@ public class TransmissionAdapter implements IDaemonAdapter {
@@ -498,7 +498,8 @@ public class TransmissionAdapter implements IDaemonAdapter {
@ -463,6 +464,8 @@ public class UtorrentAdapter implements IDaemonAdapter {
@@ -463,6 +464,8 @@ public class UtorrentAdapter implements IDaemonAdapter {
@ -486,6 +489,10 @@ public class UtorrentAdapter implements IDaemonAdapter {
@@ -486,6 +489,10 @@ public class UtorrentAdapter implements IDaemonAdapter {
@ -505,7 +512,8 @@ public class UtorrentAdapter implements IDaemonAdapter {
@@ -505,7 +512,8 @@ public class UtorrentAdapter implements IDaemonAdapter {
((float)tor.getLong(RPC_PARTDONE))/1000f,// Integer in promille
Math.min(available,1f),// Can be > 100% if multiple peers have 100%
tor.getString(RPC_LABEL_IDX).trim(),
null,// Not available
addedOnDate,
completedOnDate,
// uTorrent doesn't give the error message, so just remind that there is some error
status==TorrentStatus.Error?"See GUI for error message":null));