feat: adding download source resync

This commit is contained in:
Chubby Granny Chaser 2024-06-05 15:07:53 +01:00
commit 6b8ab895e3
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,7 @@ nsis:
uninstallDisplayName: ${productName}
createDesktopShortcut: always
oneClick: false
allowToChangeInstallationDirectory: true
mac:
entitlementsInherit: build/entitlements.mac.plist
extendInfo:

View File

@ -6,6 +6,7 @@ import {
import { UserPreferences } from "./entity";
import { RealDebridClient } from "./services/real-debrid";
import { fetchDownloadSourcesAndUpdate } from "./helpers";
import { publishNewRepacksNotifications } from "./services/notifications";
startMainLoop();
@ -29,7 +30,9 @@ const loadState = async (userPreferences: UserPreferences | null) => {
if (nextQueueItem?.game.status === "active")
DownloadManager.startDownload(nextQueueItem.game);
fetchDownloadSourcesAndUpdate();
fetchDownloadSourcesAndUpdate().then(() => {
publishNewRepacksNotifications(300);
});
};
userPreferencesRepository