mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: create HydraApi
This commit is contained in:
parent
d31d056e5e
commit
81f2e509c5
5 changed files with 99 additions and 4 deletions
|
@ -9,6 +9,7 @@ import { RealDebridClient } from "./services/real-debrid";
|
|||
import { fetchDownloadSourcesAndUpdate } from "./helpers";
|
||||
import { publishNewRepacksNotifications } from "./services/notifications";
|
||||
import { MoreThan } from "typeorm";
|
||||
import { HydraApi } from "./services/hydra-api";
|
||||
|
||||
startMainLoop();
|
||||
|
||||
|
@ -20,6 +21,8 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
|||
if (userPreferences?.realDebridApiToken)
|
||||
RealDebridClient.authorize(userPreferences?.realDebridApiToken);
|
||||
|
||||
HydraApi.createInstance();
|
||||
|
||||
const [nextQueueItem] = await downloadQueueRepository.find({
|
||||
order: {
|
||||
id: "DESC",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue