@ -101,11 +101,9 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -101,11 +101,9 @@ public class QbittorrentAdapter implements IDaemonAdapter {
}
catch(DaemonExceptione){
apiVersion=1;
log.d(LOG_NAME,e.toString());
}
catch(NumberFormatExceptione){
apiVersion=1;
log.d(LOG_NAME,e.toString());
}
log.d(LOG_NAME,"qBittorrent API version is "+apiVersion);
@ -162,16 +160,12 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -162,16 +160,12 @@ public class QbittorrentAdapter implements IDaemonAdapter {
// Have we already authenticated? Check if we have the cookie that we need
@ -180,10 +174,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -180,10 +174,8 @@ public class QbittorrentAdapter implements IDaemonAdapter {
// However, we would like to see if authentication was successful or not...
cookies=httpclient.getCookieStore().getCookies();
for(Cookiec:cookies){
log.d(LOG_NAME,"post auth looking at this cookie: "+c.getName());
if(c.getName().equals("SID")){
// Good. Let's get out of here.
log.d(LOG_NAME,"Authentication success!");
return;
}
}
@ -609,9 +601,9 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -609,9 +601,9 @@ public class QbittorrentAdapter implements IDaemonAdapter {