Browse Source

Don't treat tracker errors in Deluge as blocking.

pull/11/head
Eric Kok 12 years ago
parent
commit
d9442a271d
  1. 4
      android/AndroidManifest.xml
  2. 2
      lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java
  3. 4
      lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java

4
android/AndroidManifest.xml

@ -18,8 +18,8 @@ @@ -18,8 +18,8 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.transdroid"
android:versionName="1.1.11"
android:versionCode="153"
android:versionName="1.1.12"
android:versionCode="154"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="13" />

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

@ -572,7 +572,7 @@ public class DelugeAdapter implements IDaemonAdapter { @@ -572,7 +572,7 @@ public class DelugeAdapter implements IDaemonAdapter {
String error = tor.getString(RPC_MESSAGE);
if (tor.getString(RPC_TRACKER_STATUS).indexOf("Error") > 0) {
error += (error.length() > 0? "\n": "") + tor.getString(RPC_TRACKER_STATUS);
status = TorrentStatus.Error;
//status = TorrentStatus.Error; // Don't report this as blocking error
}
torrents.add(new Torrent(j,
names.getString(j),

4
lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java

@ -413,7 +413,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { @@ -413,7 +413,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
private long parseSize(String string) {
// See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation
if (string.equals("Unknown")
if (string.equals("Unknown"))
return -1;
// Sizes are given in "703.3 MiB"-like string format
// Returns size in B-based long
@ -469,7 +469,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { @@ -469,7 +469,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
private int parseSpeed(String speed) {
// See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation
if (speed.equals("Unknown")
if (speed.equals("Unknown"))
return -1;
// Speeds are in "21.9 KiB/s"-like string format
// Returns speed in B/s-based integer

Loading…
Cancel
Save