@ctrl/qbittorrent 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/normalizeTorrentData.js +3 -1
- package/dist/src/types.d.ts +10 -0
- package/dist/src/types.js +10 -0
- package/package.json +1 -1
@@ -14,6 +14,7 @@ export function normalizeTorrentData(torrent) {
|
|
14
14
|
stateMessage = 'qBittorrent is reporting an error';
|
15
15
|
break;
|
16
16
|
case TorrentState.PausedDL:
|
17
|
+
case TorrentState.StoppedDL:
|
17
18
|
state = NormalizedTorrentState.paused;
|
18
19
|
break;
|
19
20
|
case TorrentState.QueuedDL: // queuing is enabled and torrent is queued for download
|
@@ -35,7 +36,8 @@ export function normalizeTorrentData(torrent) {
|
|
35
36
|
state = NormalizedTorrentState.warning;
|
36
37
|
stateMessage = 'The download is stalled with no connection';
|
37
38
|
break;
|
38
|
-
case TorrentState.
|
39
|
+
case TorrentState.StoppedUP: // torrent is paused and has finished downloading
|
40
|
+
case TorrentState.PausedUP: // torrent is paused and has finished downloading
|
39
41
|
case TorrentState.Uploading: // torrent is being seeded and data is being transferred
|
40
42
|
case TorrentState.StalledUP: // torrent is being seeded, but no connection were made
|
41
43
|
case TorrentState.QueuedUP: // queuing is enabled and torrent is queued for upload
|
package/dist/src/types.d.ts
CHANGED
@@ -187,10 +187,12 @@ export declare enum TorrentState {
|
|
187
187
|
Error = "error",
|
188
188
|
/**
|
189
189
|
* Torrent is paused and has finished downloading
|
190
|
+
* ``pausedUP`` was renamed to ``stoppedUP`` in Web API v2.11.0
|
190
191
|
*/
|
191
192
|
PausedUP = "pausedUP",
|
192
193
|
/**
|
193
194
|
* Torrent is paused and has NOT finished downloading
|
195
|
+
* ``pausedDL`` was renamed to ``stoppedDL`` in Web API v2.11.0
|
194
196
|
*/
|
195
197
|
PausedDL = "pausedDL",
|
196
198
|
/**
|
@@ -221,6 +223,14 @@ export declare enum TorrentState {
|
|
221
223
|
* Torrent is being downloaded and data is being transferred
|
222
224
|
*/
|
223
225
|
Downloading = "downloading",
|
226
|
+
/**
|
227
|
+
* Torrent has been stopped while downloading
|
228
|
+
*/
|
229
|
+
StoppedDL = "stoppedDL",
|
230
|
+
/**
|
231
|
+
* Torrent has been stopped while downloading
|
232
|
+
*/
|
233
|
+
StoppedUP = "stoppedUP",
|
224
234
|
/**
|
225
235
|
* Torrent is being downloaded, but no connection were made
|
226
236
|
*/
|
package/dist/src/types.js
CHANGED
@@ -6,10 +6,12 @@ export var TorrentState;
|
|
6
6
|
TorrentState["Error"] = "error";
|
7
7
|
/**
|
8
8
|
* Torrent is paused and has finished downloading
|
9
|
+
* ``pausedUP`` was renamed to ``stoppedUP`` in Web API v2.11.0
|
9
10
|
*/
|
10
11
|
TorrentState["PausedUP"] = "pausedUP";
|
11
12
|
/**
|
12
13
|
* Torrent is paused and has NOT finished downloading
|
14
|
+
* ``pausedDL`` was renamed to ``stoppedDL`` in Web API v2.11.0
|
13
15
|
*/
|
14
16
|
TorrentState["PausedDL"] = "pausedDL";
|
15
17
|
/**
|
@@ -40,6 +42,14 @@ export var TorrentState;
|
|
40
42
|
* Torrent is being downloaded and data is being transferred
|
41
43
|
*/
|
42
44
|
TorrentState["Downloading"] = "downloading";
|
45
|
+
/**
|
46
|
+
* Torrent has been stopped while downloading
|
47
|
+
*/
|
48
|
+
TorrentState["StoppedDL"] = "stoppedDL";
|
49
|
+
/**
|
50
|
+
* Torrent has been stopped while downloading
|
51
|
+
*/
|
52
|
+
TorrentState["StoppedUP"] = "stoppedUP";
|
43
53
|
/**
|
44
54
|
* Torrent is being downloaded, but no connection were made
|
45
55
|
*/
|