From 33e17235de8a7e703f10ba9a2ddaad49a3a7212c Mon Sep 17 00:00:00 2001 From: Michael Higgins Date: Tue, 4 Jul 2017 11:04:11 -0400 Subject: [PATCH] append -copy for utorrent copy directory --- uTorrentPostProcess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uTorrentPostProcess.py b/uTorrentPostProcess.py index cdf002f2..b02ca787 100755 --- a/uTorrentPostProcess.py +++ b/uTorrentPostProcess.py @@ -145,7 +145,8 @@ def _sendRequest(session, host='http://localhost:8080/', username=None, password path = converter.output_dir else: - newpath = os.path.join(path, name) + copyname = os.path.join(path, ("%s-copy" % name)) + newpath = os.path.join(path, copyname) if not os.path.exists(newpath): os.mkdir(newpath) log.debug("Creating temporary directory %s" % newpath)