mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-06-02 06:14:48 +02:00
fix: normalize folderName in native torrent payloads
This commit is contained in:
@@ -844,7 +844,7 @@ export class DownloadManager {
|
||||
gameId: levelKeys.game(download.shop, download.objectId),
|
||||
url: download.uri,
|
||||
savePath: download.downloadPath,
|
||||
folderName: download.folderName,
|
||||
folderName: download.folderName ?? undefined,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1531,7 +1531,7 @@ export class DownloadManager {
|
||||
gameId: downloadId,
|
||||
url: download.uri,
|
||||
savePath: download.downloadPath,
|
||||
folderName: download.folderName,
|
||||
folderName: download.folderName ?? undefined,
|
||||
fileIndices: download.fileIndices,
|
||||
timeoutMs: isSelectiveTorrentStart ? 60_000 : 10_000,
|
||||
});
|
||||
|
||||
@@ -31,7 +31,7 @@ type HydraNativeModule = {
|
||||
gameId: string;
|
||||
url: string;
|
||||
savePath: string;
|
||||
folderName?: string | null;
|
||||
folderName?: string;
|
||||
fileIndices?: number[];
|
||||
timeoutMs?: number;
|
||||
}) => Promise<void>;
|
||||
@@ -41,7 +41,7 @@ type HydraNativeModule = {
|
||||
gameId: string;
|
||||
url: string;
|
||||
savePath: string;
|
||||
folderName?: string | null;
|
||||
folderName?: string;
|
||||
}) => void;
|
||||
torrentPauseSeeding: (gameId: string) => void;
|
||||
torrentSetDownloadLimit: (
|
||||
@@ -180,7 +180,7 @@ export class NativeAddon {
|
||||
gameId: string;
|
||||
url: string;
|
||||
savePath: string;
|
||||
folderName?: string | null;
|
||||
folderName?: string;
|
||||
fileIndices?: number[];
|
||||
timeoutMs?: number;
|
||||
}) {
|
||||
@@ -199,7 +199,7 @@ export class NativeAddon {
|
||||
gameId: string;
|
||||
url: string;
|
||||
savePath: string;
|
||||
folderName?: string | null;
|
||||
folderName?: string;
|
||||
}) {
|
||||
this.load().torrentResumeSeeding(payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user