mirror of
https://github.com/dnslin/aria2bot.git
synced 2026-01-11 20:12:20 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64fa02d0b6 | ||
|
|
64b3740bb4 |
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
aria2bot:
|
||||
# 方式一:使用预构建镜像(推荐)
|
||||
image: dnslin/aria2bot:latest
|
||||
image: dnslin/aria2bot:v1.1
|
||||
# 方式二:本地构建(取消下行注释,注释上行)
|
||||
# build: .
|
||||
container_name: aria2bot
|
||||
|
||||
@@ -225,7 +225,7 @@ class Aria2RpcClient:
|
||||
return DownloadTask(
|
||||
gid=data.get("gid", ""),
|
||||
status=data.get("status", "unknown"),
|
||||
name=name[:40] if len(name) > 40 else name, # 截断文件名
|
||||
name=name, # 保留完整文件名,显示时再截断
|
||||
total_length=int(data.get("totalLength", 0)),
|
||||
completed_length=int(data.get("completedLength", 0)),
|
||||
download_speed=int(data.get("downloadSpeed", 0)),
|
||||
|
||||
@@ -778,7 +778,7 @@ class Aria2BotAPI:
|
||||
|
||||
local_path = Path(task.dir) / task.name
|
||||
if not local_path.exists():
|
||||
logger.error(f"频道上传失败:本地文件不存在 GID={gid}")
|
||||
logger.error(f"频道上传失败:本地文件不存在 GID={gid}, dir={task.dir}, name={task.name}, path={local_path}")
|
||||
return
|
||||
|
||||
# 检查文件大小
|
||||
|
||||
Reference in New Issue
Block a user