From 0e6c65608f1c0745aae79fe2cc45db4de94dcc29 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 11 Apr 2021 12:12:36 +0800 Subject: [PATCH] up --- plugins/aria2/conf/aria2.conf | 2 +- plugins/aria2/index.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/aria2/conf/aria2.conf b/plugins/aria2/conf/aria2.conf index 8a791b9a9..0deb949aa 100755 --- a/plugins/aria2/conf/aria2.conf +++ b/plugins/aria2/conf/aria2.conf @@ -1,7 +1,7 @@ ## 文件保存相关 ## # 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置 -dir=/Users/midoks/Downloads +dir=/tmp/aria2 # 设置日志等级 log-level=error # 日志保存路径 diff --git a/plugins/aria2/index.py b/plugins/aria2/index.py index a98d50f82..50bf5478b 100755 --- a/plugins/aria2/index.py +++ b/plugins/aria2/index.py @@ -66,7 +66,9 @@ def initDreplace(): mw.execShell('chmod +x ' + file_bin) aria2_path = getServerDir() + '/aria2' + mw.execShell('mkdir -p /tmp/download') if not os.path.exists(aria2_path): + mw.execShell('mkdir -p ' + aria2_path) mw.execShell('touch ' + aria2_path + '/aria2.session')