From 3098cf6d88aa2dcb8370ee55e6c43151f2994651 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sun, 29 May 2022 15:32:28 -0700 Subject: [PATCH] server: rTorrent: avoid relying on type coercion of RPC value --- server/services/rTorrent/util/torrentPropertiesUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/rTorrent/util/torrentPropertiesUtil.ts b/server/services/rTorrent/util/torrentPropertiesUtil.ts index 37100801..2cea7dee 100644 --- a/server/services/rTorrent/util/torrentPropertiesUtil.ts +++ b/server/services/rTorrent/util/torrentPropertiesUtil.ts @@ -103,7 +103,7 @@ export const getAddTorrentPropertiesCalls = ({ Pick >) => { const result: Array = [ - 'd.tied_to_file.set=', + 'd.tied_to_file.set=""', `d.custom.set=addtime,${Math.round(Date.now() / 1000)}`, `${isBasePath ? 'd.directory_base.set' : 'd.directory.set'}="${destination}"`, ];