|
|
@ -650,13 +650,13 @@ public class QbittorrentAdapter implements IDaemonAdapter { |
|
|
|
// Status is given as a descriptive string
|
|
|
|
// Status is given as a descriptive string
|
|
|
|
if (state.equals("error")) { |
|
|
|
if (state.equals("error")) { |
|
|
|
return TorrentStatus.Error; |
|
|
|
return TorrentStatus.Error; |
|
|
|
} else if (state.equals("downloading")) { |
|
|
|
} else if (state.equals("downloading") || state.equals("metaDL")) { |
|
|
|
return TorrentStatus.Downloading; |
|
|
|
return TorrentStatus.Downloading; |
|
|
|
} else if (state.equals("uploading")) { |
|
|
|
} else if (state.equals("uploading")) { |
|
|
|
return TorrentStatus.Seeding; |
|
|
|
return TorrentStatus.Seeding; |
|
|
|
} else if (state.equals("pausedDL")) { |
|
|
|
} else if (state.equals("pausedDL")) { |
|
|
|
return TorrentStatus.Paused; |
|
|
|
return TorrentStatus.Paused; |
|
|
|
} else if (state.equals("pausedUL")) { |
|
|
|
} else if (state.equals("pausedUP")) { |
|
|
|
return TorrentStatus.Paused; |
|
|
|
return TorrentStatus.Paused; |
|
|
|
} else if (state.equals("stalledUP")) { |
|
|
|
} else if (state.equals("stalledUP")) { |
|
|
|
return TorrentStatus.Seeding; |
|
|
|
return TorrentStatus.Seeding; |
|
|
@ -668,7 +668,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { |
|
|
|
return TorrentStatus.Checking; |
|
|
|
return TorrentStatus.Checking; |
|
|
|
} else if (state.equals("queuedDL")) { |
|
|
|
} else if (state.equals("queuedDL")) { |
|
|
|
return TorrentStatus.Queued; |
|
|
|
return TorrentStatus.Queued; |
|
|
|
} else if (state.equals("queuedUL")) { |
|
|
|
} else if (state.equals("queuedUP")) { |
|
|
|
return TorrentStatus.Queued; |
|
|
|
return TorrentStatus.Queued; |
|
|
|
} |
|
|
|
} |
|
|
|
return TorrentStatus.Unknown; |
|
|
|
return TorrentStatus.Unknown; |
|
|
|