mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: clean up code
This commit is contained in:
parent
859d849d36
commit
db01980eb8
7 changed files with 15 additions and 37 deletions
|
@ -1,8 +1,5 @@
|
|||
import { Ludusavi, startMainLoop } from "./services";
|
||||
import {
|
||||
// downloadQueueRepository,
|
||||
userPreferencesRepository,
|
||||
} from "./repository";
|
||||
import { userPreferencesRepository } from "./repository";
|
||||
import { UserPreferences } from "./entity";
|
||||
import { RealDebridClient } from "./services/download/real-debrid";
|
||||
import { HydraApi } from "./services/hydra-api";
|
||||
|
@ -25,24 +22,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
|||
uploadGamesBatch();
|
||||
});
|
||||
|
||||
// const [nextQueueItem] = await downloadQueueRepository.find({
|
||||
// order: {
|
||||
// id: "DESC",
|
||||
// },
|
||||
// relations: {
|
||||
// game: true,
|
||||
// },
|
||||
// });
|
||||
|
||||
PythonRPC.spawn();
|
||||
// start download
|
||||
|
||||
// if (nextQueueItem?.game.status === "active") {
|
||||
// DownloadManager.startDownload(nextQueueItem.game);
|
||||
// } else {
|
||||
// PythonInstance.spawn();
|
||||
// }
|
||||
|
||||
startMainLoop();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue