diff --git a/plugins/qbittorrent/index.py b/plugins/qbittorrent/index.py index 27d94c34d..f05332555 100755 --- a/plugins/qbittorrent/index.py +++ b/plugins/qbittorrent/index.py @@ -86,9 +86,9 @@ def getRunLog(): def initDreplace(): ddir = getServerDir() + '/workers' - # if not os.path.exists(ddir): - sdir = getPluginDir() + '/workers' - public.execShell('cp -rf ' + sdir + ' ' + getServerDir()) + if not os.path.exists(ddir): + sdir = getPluginDir() + '/workers' + public.execShell('cp -rf ' + sdir + ' ' + getServerDir()) cfg = getServerDir() + '/qb.conf' if not os.path.exists(cfg):