Add stalled filters to GUI and Web API/UI

`/api/v2/torrents/info` can now take the following new values for the`filter` parameter: `stalled`, `stalled_uploading` and `stalled_downloading`.

Requires Web API version bump.

Closes #11787
This commit is contained in:
FranciscoPombal 2020-01-13 11:41:37 +00:00
parent e906478a16
commit f4742a98c5
9 changed files with 69 additions and 1 deletions

View file

@ -1225,6 +1225,18 @@ window.qBittorrent.DynamicTable = (function() {
if (~state.indexOf('paused'))
return false;
break;
case 'stalled':
if ((state != 'stalledUP') && (state != 'stalledDL'))
return false;
break;
case 'stalled_uploading':
if (state != 'stalledUP')
return false;
break;
case 'stalled_downloading':
if (state != 'stalledDL')
return false;
break;
case 'inactive':
inactive = true;
// fallthrough