Browse Source

Fixed and exposed Date Added support for Deluge.

pull/82/head
Eric Kok 11 years ago
parent
commit
9848895395
  1. 2
      lib/src/org/transdroid/daemon/Daemon.java
  2. 2
      lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java

2
lib/src/org/transdroid/daemon/Daemon.java

@ -310,7 +310,7 @@ public enum Daemon { @@ -310,7 +310,7 @@ public enum Daemon {
}
public static boolean supportsDateAdded(Daemon type) {
return type == Vuze || type == Transmission || type == rTorrent || type == Bitflu || type == BitComet || type == uTorrent || type == BitTorrent || type == Dummy;
return type == Vuze || type == Transmission || type == rTorrent || type == Bitflu || type == BitComet || type == uTorrent || type == BitTorrent || type == Deluge || type == Dummy;
}
public static boolean supportsLabels(Daemon type) {

2
lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java

@ -599,7 +599,7 @@ public class DelugeAdapter implements IDaemonAdapter { @@ -599,7 +599,7 @@ public class DelugeAdapter implements IDaemonAdapter {
((float) tor.getDouble(RPC_PARTDONE)) / 100f, // Percentage to [0..1]
0f, // Not available
tor.has(RPC_LABEL)? tor.getString(RPC_LABEL): null,
tor.has(RPC_TIMEADDED)? new Date(tor.getInt(RPC_TIMEADDED) * 1000L): null,
tor.has(RPC_TIMEADDED)? new Date((long) (tor.getDouble(RPC_TIMEADDED) * 1000L)): null,
null, // Not available
tor.getString(RPC_MESSAGE),
settings.getType()));

Loading…
Cancel
Save