@ -592,12 +592,6 @@ public class BitCometAdapter implements IDaemonAdapter {
@@ -592,12 +592,6 @@ public class BitCometAdapter implements IDaemonAdapter {
// End of a 'transfer' item, add gathered torrent data
@ -662,10 +656,10 @@ public class BitCometAdapter implements IDaemonAdapter {
@@ -662,10 +656,10 @@ public class BitCometAdapter implements IDaemonAdapter {
status=convertStatus(xpp.getText());
break;
case"bytes_downloaded":
sizeDone=Long.parseLong(xpp.getText());
sizeDone=Integer.parseInt(xpp.getText());
break;
case"bytes_uploaded":
sizeUp=Long.parseLong(xpp.getText());
sizeUp=Integer.parseInt(xpp.getText());
break;
case"size":
totalSize=Long.parseLong(xpp.getText());
@ -784,10 +778,6 @@ public class BitCometAdapter implements IDaemonAdapter {
@@ -784,10 +778,6 @@ public class BitCometAdapter implements IDaemonAdapter {
@ -90,10 +90,6 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -90,10 +90,6 @@ public class QBittorrentAdapter implements IDaemonAdapter {
privateDefaultHttpClienthttpclient;
privateintversion=-1;
privatelonglastAuthTime=-1;
privateintqbNoPriority=0;
privateintqbLowPriority=1;
privateintqbNormalPriority=2;
privateintqbHighPriority=7;
publicQBittorrentAdapter(DaemonSettingssettings){
this.settings=settings;
@ -128,14 +124,10 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -128,14 +124,10 @@ public class QBittorrentAdapter implements IDaemonAdapter {
}
version=parseVersionNumber(versionText);
if(version>=30200){
qbNormalPriority=6;
}
}catch(Exceptione){
// Unable to establish version number; assume an old version by setting it to version 1
version=10000;
qbNormalPriority=2;
}
}
@ -379,13 +371,13 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -379,13 +371,13 @@ public class QBittorrentAdapter implements IDaemonAdapter {
// We have to make a separate request per file, it seems
for(TorrentFilefile:setPrio.getForFiles()){
@ -395,7 +387,7 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -395,7 +387,7 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -899,11 +891,11 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -899,11 +891,11 @@ public class QBittorrentAdapter implements IDaemonAdapter {
privatePriorityparsePriority(intpriority){
// Priority is an integer
// Actually 1 = Normal, 2 = High, 7 = Maximum, but adjust this to Transdroid values