Skip to content

Commit

Permalink
append -copy for utorrent copy directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Higgins committed Jul 4, 2017
1 parent d67bc19 commit 33e1723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uTorrentPostProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33e1723

Please sign in to comment.