pull/109/head
midoks 4 years ago
parent 5676c8af0a
commit 0e6c65608f
  1. 2
      plugins/aria2/conf/aria2.conf
  2. 2
      plugins/aria2/index.py

@ -1,7 +1,7 @@
## 文件保存相关 ##
# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置
dir=/Users/midoks/Downloads
dir=/tmp/aria2
# 设置日志等级
log-level=error
# 日志保存路径

@ -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')

Loading…
Cancel
Save