mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: remove unused seed process functionality from main application
This commit is contained in:
parent
230c24cca5
commit
17879f9c70
2 changed files with 0 additions and 22 deletions
|
@ -9,7 +9,6 @@ import { RealDebridClient } from "./services/download/real-debrid";
|
|||
import { HydraApi } from "./services/hydra-api";
|
||||
import { uploadGamesBatch } from "./services/library-sync";
|
||||
import { Aria2 } from "./services/aria2";
|
||||
import { startSeedProcess } from "./services/seed";
|
||||
import { PythonRPC } from "./services/python-rpc";
|
||||
|
||||
const loadState = async (userPreferences: UserPreferences | null) => {
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
import { gameRepository } from "@main/repository";
|
||||
import { DownloadManager } from "./download/download-manager";
|
||||
import { sleep } from "@main/helpers";
|
||||
|
||||
export const startSeedProcess = async () => {
|
||||
const seedList = await gameRepository.find({
|
||||
where: {
|
||||
shouldSeed: true,
|
||||
downloader: 1,
|
||||
progress: 1,
|
||||
},
|
||||
});
|
||||
|
||||
if (seedList.length === 0) return;
|
||||
await sleep(1000);
|
||||
|
||||
seedList.map(async (game) => {
|
||||
await DownloadManager.startDownload(game);
|
||||
await sleep(300);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue