Skip to content

Commit

Permalink
New file tree selection system
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowanliang committed Dec 14, 2020
1 parent f989a9a commit c95ad8d
Show file tree
Hide file tree
Showing 18 changed files with 2,071 additions and 668 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

(Currently) 🤖 A Telegram Bot that controls your Aria2 server.

## Project significance
This project is mainly to use small hard disk server for offline downloading, for large bt files to be downloaded in sections according to the size of the hard disk, each time downloading a part, then uploading the network disk, delete and then download the other parts, until all the files are downloaded.

At the same time, communication via the bot protocol facilitates use on machines that cannot intranet penetration, and simplifies the usual use of download programs for added convenience.

## Functions realized

#### Download method
Expand All @@ -14,23 +19,26 @@

#### The Bot protocol supports
- [x] Telegram Bot
- [ ] Tencent QQ (Use regular QQ users to interact)
- [ ] DingTalk Bot


#### Function
- [x] Control server files
- [x] Delete file
- [ ] Move/Copy file
- [x] Download files
- [x] Download HTTP/FTP link
- [x] Download Magnet link
- [x] Download the files in the BT file
- [x] Custom Torrent/Magnet download
- [x] Download only the largest files
- [x] Do not download files smaller than the specified size
- [x] Select only the largest file to download
- [x] Intelligent file selection based on file size, do not select small files in Torrent/Magnet.
- [ ] Download Torrent/Magnet according to the size of storage space
- [ ] Do not download files that exceed storage space
- [ ] Download the files in Torrent/Magnet several times according to the storage space
- [ ] Upload a file
- [ ] Upload the file to OneDrive when the download is complete
- [x] Upload a file
- [x] Upload the file to OneDrive when the download is complete
- [ ] Upload the file to Google Drive when the download is complete
- [ ] Upload the file to Mega when the download is complete
- [ ] Upload the file to 189Cloud when the download is complete
Expand All @@ -40,7 +48,7 @@
- [x] English
- [x] Traditional Chinese
- [ ] Japanese
- [ ] Download of unattended BT station
- [ ] No human intervention, fully automatic downloads of BT site
- [ ] Nyaa
- [ ] ThePirateBay
- [ ] Other functions
Expand Down
101 changes: 57 additions & 44 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,69 @@
# DownloadBot

(目前) 🤖 一个可以控制你的Aria2服务器、控制服务器文件,同时可以上传到OneDrive的Telegram Bot。

## 意义

(目前)🤖 一个控制你的Aria2服务器的Telegram Bot。

这个项目主要就是利用吃灰小盘vps进行离线下载,对于大bt文件进行根据硬盘大小分段下载,每次都下载一部分,然后上传网盘,删除再下载其他部分,直到下载完所有文件。

同时,通过机器人协议通信,方便在无法进行内网穿透的机器上进行使用,而且简化了平时使用下载程序的操作,提高了便利性。
## 实现

#### 下载方式

- [x] Aria2 控制
- [ ] [SimpleTorrent](https://github.com/boypt/simple-torrent) 控制
- [ ] qbittorrent 控制
- [ ] 多下载服务器同时控制

#### 机器人协议支持

- [x] Telegram Bot
- [ ] 腾讯QQ(使用普通QQ用户来进行交互)
- [ ] 钉钉机器人


#### 功能

- [x] 控制服务器文件
- [x] 删除文件
- [x] 删除文件
- [x] 移动文件
- [x] 下载文件
- [x] 下载 HTTP/FTP 链接
- [x] 下载 Magnet 链接
- [x] 下载 BT 文件内的文件
- [x] 智能 Torrent/Magnet 下载方式
- [x] 只下载最大的文件
- [x] 不下载小于指定大小的文件
- [ ] 自适应环境存储空间的 Torrent/Magnet 下载
- [ ] 不下载超过存储空间的文件
- [ ] 根据存储空间分块多次下载 Torrent/Magnet 内的文件
- [ ] 上传文件
- [ ] 下载完成后,向 OneDrive 上传文件
- [ ] 下载完成后,向 Google Drive 上传文件
- [ ] 下载完成后,向 Mega 上传文件
- [ ] 下载完成后,向 天翼网盘 上传文件
- [x] 下载 HTTP/FTP 链接
- [x] 下载 Magnet 链接
- [x] 下载 BT 文件内的文件
- [x] 智能 Torrent/Magnet 下载方式
- [x] 只选择下载最大的文件
- [x] 根据文件大小智能选择文件,不选择小文件
- [ ] 自适应环境存储空间的 Torrent/Magnet 下载
- [ ] 不下载超过存储空间的文件
- [ ] 根据存储空间分块多次下载 Torrent/Magnet 内的文件
- [x] 上传文件
- [x] 下载完成后,向 OneDrive 上传文件
- [ ] 下载完成后,向 Google Drive 上传文件
- [ ] 下载完成后,向 Mega 上传文件
- [ ] 下载完成后,向 天翼网盘 上传文件
- [x] 附加其他功能
- [x] 多语言支持
- [x] 简体中文
- [x] 英语
- [x] 繁体中文
- [ ] 日语
- [ ] 无人值守的BT站下载
- [ ] Nyaa
- [ ] ThePirateBay
- [ ] 其他功能
- [ ] 通过演员ID获取在DMM中使用的所有CID
- [ ] 查询 "ikoa "中的影片参数(利用mahuateng)
- [ ] 通过javlibary演员网址获得所有演员的编号。
- [ ] 查询dmm cid信息、预览影片、预览图片。
- [ ] 在sukebei中按关键词搜索。
- [ ] 根据关键词在dmm中搜索,最多30项。
- [ ] 输入dmm链接,列出所有项目。
- [ ] 搜索当前dmm热门和最新电影,限制30条(测试版)
- [x] 多语言支持
- [x] 简体中文
- [x] 英语
- [x] 繁体中文
- [ ] 日语
- [ ] 无人值守的BT站下载
- [ ] Nyaa
- [ ] ThePirateBay
- [ ] 其他功能
- [ ] 通过演员ID获取在DMM中使用的所有CID
- [ ] 查询 "ikoa "中的影片参数(利用mahuateng)
- [ ] 通过javlibary演员网址获得所有演员的编号。
- [ ] 查询dmm cid信息、预览影片、预览图片。
- [ ] 在sukebei中按关键词搜索。
- [ ] 根据关键词在dmm中搜索,最多30项。
- [ ] 输入dmm链接,列出所有项目。
- [ ] 搜索当前dmm热门和最新电影,限制30条(测试版)

## 目前特点

1. 完全基于触摸,更容易使用,使用这个机器人基本不需要命令。
2. 实时通知,使用Aria2的Websocket协议进行通信。
3. 更好的配置文件支持。
Expand All @@ -71,18 +80,21 @@

```json
{
"aria2-server": "ws://127.0.0.1:5800/jsonrpc",
"aria2-key": "xxxxxxxx",
"bot-key": "123456789:xxxxxxxxx",
"user-id": "123456789",
"max-index": 10,
"sign":"Main Aria2",
"language":"zh-CN",
"downloadFolder":"C:/aria2/Aria2Data"
"aria2-server": "ws://127.0.0.1:5800/jsonrpc",
"aria2-key": "xxxxxxxx",
"bot-key": "123456789:xxxxxxxxx",
"user-id": "123456789",
"max-index": 10,
"sign": "Main Aria2",
"language": "zh-CN",
"downloadFolder": "C:/aria2/Aria2Data"
}
```

#### 各项对应解释
* aria2-server:aria2服务器地址,默认使用websocket连接。如果要使用websocket连接aria2,请务必设置`aria2.conf`内的`enable-rpc=true`。如果不是必须,请尽量设置本地的aria2地址,以便于最大化的使用本程序

* aria2-server:aria2服务器地址,默认使用websocket连接。如果要使用websocket连接aria2,请务必设置`aria2.conf`内的`enable-rpc=true`
。如果不是必须,请尽量设置本地的aria2地址,以便于最大化的使用本程序
* aria2-key:`aria2.conf``rpc-secret`的值
* bot-key:Telegram Bot的标识
* user-id:管理员的ID
Expand All @@ -92,6 +104,7 @@
* downloadFolder:Aria2下载文件保存的地址

#### 目前支持的语言及语言标签

| 语言 | 标签 |
|----------|-------|
| 英语 | en |
Expand All @@ -101,5 +114,5 @@
当您在`config.json`中填写上面语言的标签的时候,程序会自动下载语言包

#### 关于user-id
如果您不知道您的 `user-id` ,可以将此项留空,在运行这个机器人后输入`/myid`,此机器人就会返回您的`user-id`.

如果您不知道您的 `user-id` ,可以将此项留空,在运行这个机器人后输入`/myid`,此机器人就会返回您的`user-id`.

0 comments on commit c95ad8d

Please sign in to comment.