Commit Graph

75 Commits

Author SHA1 Message Date
amtoaer
f70cdfcb21 chore: 一轮运行完成后打印日志,便于区分 2024-04-06 02:06:27 +08:00
amtoaer
5a364d34f7 style: 移除未使用的 use 2024-04-06 02:05:54 +08:00
idlercloud
4ba23ce8fc refactor: 用更 idiomatic 的方式改写一些代码 (#54)
* refactor: Config 采用 arc_swap 而非锁

* refactor: 改进 config 的检查,及其他一些细微优化

* refactor: 不再拆分 lib.rs 和 main.rs
2024-04-04 18:39:41 +08:00
amtoaer
2521fe932b fix: 修复部分写法错误 2024-04-03 01:43:09 +08:00
amtoaer
2230a814d2 fix: 修复部分数据类型错误,添加额外检查 2024-04-03 01:42:57 +08:00
amtoaer
faac0b3e9b feat: 配置文件中添加 up 主信息的保存路径 2024-04-03 01:40:40 +08:00
amtoaer
3859ad9bd0 feat: 支持请求过快出现风控时终止全部下载 2024-04-02 23:14:36 +08:00
amtoaer
377f3bb22a fix: 修复状态码类型,引入自定义错误 2024-04-02 23:13:52 +08:00
amtoaer
beb3634e33 feat: 在接口层级返回特定错误 2024-04-02 00:00:44 +08:00
amtoaer
f5bc882122 chore: 替换掉 re-exports 2024-04-01 22:18:04 +08:00
amtoaer
eeb9f86830 deps: 依赖排序,并移除无用的 re-exports 2024-04-01 22:17:41 +08:00
amtoaer
d72551254f chore: 全盘使用 anyhow::Result 2024-04-01 21:53:11 +08:00
amtoaer
45708e91e8 deps: 加入 anyhow 依赖 2024-04-01 21:52:52 +08:00
amtoaer
e1a8f744c2 docs: 调整 README 结构 2024-03-31 20:18:28 +08:00
amtoaer
d4be8beb67 docs: 添加 README.md 2024-03-31 20:12:50 +08:00
amtoaer
50f9f35239 chore: 加入几个额外的模板参数 2024-03-31 20:12:36 +08:00
amtoaer
e591015bae chore: 修改默认 UA 2024-03-31 19:30:12 +08:00
amtoaer
ec066a85db chore: 加入一些工具方法 2024-03-31 19:29:48 +08:00
amtoaer
4d016aa418 fix: 修复下载失败的状态标记异常 2024-03-31 19:29:19 +08:00
amtoaer
96c000b536 fix: 加入遇到风控请求失败的兜底 2024-03-31 19:28:41 +08:00
amtoaer
5e8b351ee4 fix: 修复 nfo 的 cdata 错误 2024-03-31 19:28:15 +08:00
amtoaer
511daa1768 deps: 加入格式化文件名的依赖 2024-03-31 18:24:26 +08:00
amtoaer
243a6b5d62 fix: 修改状态码定义,修复单页视频封面错误 2024-03-31 15:19:01 +08:00
amtoaer
b7ec11039c fix: 处理视频的筛选条件加上必须是视频稿件 2024-03-31 15:18:27 +08:00
amtoaer
f60ee2ed1d feat: 添加 static 的模板,修复各种路径相关的问题 2024-03-31 14:04:19 +08:00
amtoaer
5515cf2323 fix: 修复刷新凭据相关的异常 2024-03-31 14:02:16 +08:00
amtoaer
5e73b5c0bf feat: 程序入口进行数据库迁移,读取全局配置 2024-03-31 14:01:12 +08:00
amtoaer
52f8b2708f feat: 支持从文件中读取配置 2024-03-31 14:00:13 +08:00
amtoaer
6c21c20c1f feat: 支持在程序启动时执行 migration 2024-03-31 13:52:07 +08:00
amtoaer
21213f1d18 chore: 移除、修改一些数据库字段 2024-03-31 13:51:15 +08:00
amtoaer
a58d207d22 chore: 忽略和 debug 相关的文件 2024-03-31 13:50:33 +08:00
amtoaer
6b592ea3ce deps: reqwest 支持 gzip 2024-03-31 13:49:47 +08:00
amtoaer
5540c46541 feat: 实现全部的下载逻辑 2024-03-31 00:43:25 +08:00
amtoaer
937ae2c157 chore: 移除、修改一些数据库字段 2024-03-31 00:41:31 +08:00
amtoaer
fd5ee524bb test: 加入 status 方法的单元测试 2024-03-30 21:00:39 +08:00
amtoaer
8bc4895e1b chore: 添加注释,修改一些函数名,移除不必要的 Box、Pin 2024-03-30 21:00:07 +08:00
amtoaer
53ff98e7e3 docs: 添加 Status 的注释 2024-03-30 14:49:02 +08:00
amtoaer
9eadb70ec7 feat: 实现全部的下载逻辑 2024-03-30 14:48:43 +08:00
amtoaer
1b0d657615 chore: 修改测试路径 2024-03-30 14:48:06 +08:00
amtoaer
f13e7c319e deps: tinytemplate 不能作为 static 使用,换用 handlebars 2024-03-30 14:46:18 +08:00
amtoaer
0d10f92ee3 chore: 忽略测试下载的视频文件夹 2024-03-30 14:45:08 +08:00
amtoaer
89a76fcd52 style: 将最大行宽设置为 120 2024-03-30 01:52:16 +08:00
amtoaer
fadb122ec8 feat: 完成大部分下载功能,移除许多无意义的 Arc 使用 2024-03-30 01:44:00 +08:00
amtoaer
5ddb0335fc chore: 目前仅支持三个状态:封面、视频和 nfo 2024-03-30 01:43:22 +08:00
amtoaer
a451b6dca3 feat: 支持 NFO 生成 2024-03-30 01:42:44 +08:00
amtoaer
d327d8f179 chore: 方便调试,引入 FilterOption 的默认值 2024-03-30 01:41:08 +08:00
amtoaer
809b47bbbc fix: 允许 page.image 为 None 2024-03-30 01:40:40 +08:00
amtoaer
51b319ffd5 deps: 加入 xml 和模板库 2024-03-30 01:40:09 +08:00
amtoaer
40ad37befc feat: 搭起下载流程的框架,待填充具体下载过程 2024-03-29 00:30:09 +08:00
amtoaer
855ef5e0f2 deps: 继续添加依赖 2024-03-29 00:23:41 +08:00