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} uninstallDisplayName: ${productName}
createDesktopShortcut: always createDesktopShortcut: always
oneClick: false oneClick: false
allowToChangeInstallationDirectory: true
mac: mac:
entitlementsInherit: build/entitlements.mac.plist entitlementsInherit: build/entitlements.mac.plist
extendInfo: extendInfo:

View File

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