@ -412,10 +412,15 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -412,10 +412,15 @@ public class QbittorrentAdapter implements IDaemonAdapter {
}
privatelongparseSize(Stringstring){
// Sizes are given in "703.3 MiB" string format
// See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation
if(string.equals("Unknown")
return-1;
// Sizes are given in "703.3 MiB"-like string format
@ -463,7 +468,10 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -463,7 +468,10 @@ public class QbittorrentAdapter implements IDaemonAdapter {
}
privateintparseSpeed(Stringspeed){
// Speeds are in "21.9 KiB/s" string format
// See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation