mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 16:53:57 +00:00
feat: get seed status
This commit is contained in:
@@ -123,6 +123,16 @@ export class PythonInstance {
|
||||
}
|
||||
}
|
||||
|
||||
public static async getSeedStatus() {
|
||||
const response = await this.rpc.get<LibtorrentPayload[] | null>(
|
||||
"/seed-status"
|
||||
);
|
||||
|
||||
if (response.data === null) return [];
|
||||
|
||||
return response.data;
|
||||
}
|
||||
|
||||
static async pauseDownload() {
|
||||
await this.rpc
|
||||
.post("/action", {
|
||||
|
||||
Reference in New Issue
Block a user