File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -73,3 +73,5 @@ console.log(res);
73
73
### See Also
74
74
transmission - https://github.com/TypeCtrl/transmission
75
75
qbittorrent - https://github.com/TypeCtrl/qbittorrent
76
+ utorrent - https://github.com/TypeCtrl/utorrent
77
+ rtorrent - https://github.com/TypeCtrl/rtorrent
Original file line number Diff line number Diff line change @@ -174,6 +174,14 @@ export class Deluge implements TorrentClient {
174
174
return res . body . result ;
175
175
}
176
176
177
+ /**
178
+ * returns the version ex - `2.0.3-2-201906121747-ubuntu18.04.1`
179
+ */
180
+ async getVersion ( ) {
181
+ const req = await this . request < StringStatus > ( 'daemon.get_version' ) ;
182
+ return req . body ;
183
+ }
184
+
177
185
/**
178
186
* used to get torrent info before adding
179
187
* @param tmpPath use path returned from upload torrent looks like `'/tmp/delugeweb-DfEsgR/tmpD3rujY.torrent'`
@@ -185,10 +193,11 @@ export class Deluge implements TorrentClient {
185
193
186
194
/**
187
195
* Lists methods
196
+ * @param auth disable or enable auth connection
188
197
* @returns a list of method names
189
198
*/
190
- async listMethods ( ) {
191
- const req = await this . request < ListMethods > ( 'system.listMethods' , undefined , false ) ;
199
+ async listMethods ( auth = true ) {
200
+ const req = await this . request < ListMethods > ( 'system.listMethods' , undefined , auth ) ;
192
201
return req . body ;
193
202
}
194
203
You can’t perform that action at this time.
0 commit comments