@ -457,6 +458,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -457,6 +458,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
longsize;
intdlspeed;
intupspeed;
DateaddedOn=null;
DatecompletionOn=null;
if(apiVersion>=2){
leechers=newint[2];
@ -469,6 +472,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -469,6 +472,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@ -481,7 +486,6 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -481,7 +486,6 @@ public class QbittorrentAdapter implements IDaemonAdapter {
longeta=-1L;
if(dlspeed>0)
eta=(long)(size-(size*progress))/dlspeed;
// Date added is only available in /json/propertiesGeneral on a per-torrent basis, unfortunately
// Add the parsed torrent to the list
// @formatter:off
torrents.add(newTorrent(
@ -503,8 +507,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -503,8 +507,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
(float)progress,
0f,
null,
null,
null,
addedOn,
completionOn,
null,
settings.getType()));
// @formatter:on
@ -594,7 +598,9 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -594,7 +598,9 @@ public class QbittorrentAdapter implements IDaemonAdapter {