diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index 4aae5808..3a8da5b4 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -26,15 +26,18 @@ export class DownloadManager { public static startRPC(game: Game, initialSeeding?: Game[]) { if (game && game.status === "active") { - PythonRPC.spawn({ - game_id: game.id, - url: game.uri!, - save_path: game.downloadPath!, - }, initialSeeding?.map((game) => ({ - game_id: game.id, - url: game.uri!, - save_path: game.downloadPath!, - }))); + PythonRPC.spawn( + { + game_id: game.id, + url: game.uri!, + save_path: game.downloadPath!, + }, + initialSeeding?.map((game) => ({ + game_id: game.id, + url: game.uri!, + save_path: game.downloadPath!, + })) + ); this.downloadingGameId = game.id; } diff --git a/src/main/services/python-rpc.ts b/src/main/services/python-rpc.ts index dc03f0de..19622a99 100644 --- a/src/main/services/python-rpc.ts +++ b/src/main/services/python-rpc.ts @@ -42,7 +42,10 @@ export class PythonRPC { readable.on("data", logger.log); } - public static spawn(initialDownload?: GamePayload, initialSeeding?: GamePayload[]) { + public static spawn( + initialDownload?: GamePayload, + initialSeeding?: GamePayload[] + ) { const commonArgs = [ this.BITTORRENT_PORT, this.RPC_PORT,