mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: enhance seed status retrieval
This commit is contained in:
parent
d7e06d6622
commit
5fbf0baa0f
3 changed files with 21 additions and 2 deletions
|
@ -144,6 +144,15 @@ export class DownloadManager {
|
|||
}
|
||||
|
||||
public static async getSeedStatus() {
|
||||
const seedStatus = await PythonRPC.rpc
|
||||
.get<LibtorrentPayload[] | null>("/seed-status")
|
||||
.then((results) => {
|
||||
if (results === null) return [];
|
||||
return results.data;
|
||||
});
|
||||
|
||||
console.log(seedStatus);
|
||||
|
||||
// const gamesToSeed = await gameRepository.find({
|
||||
// where: { shouldSeed: true, isDeleted: false },
|
||||
// });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue