Compare commits

..
Author SHA1 Message Date
Cursor Agentandqaiu 7d6d66b62f Bump standalone parser artifact to 10.2.6
Central still has immutable cn.qaiu:parser:10.2.5. Advance parserVersion
and the dependency snippets so a later manual deploy publishes current
parser sources. Leave the app revision at 0.4.13 and do not publish.

Co-authored-by: qaiu <[email protected]>
2026-11-26 00:38:29 +00:00
cursor[bot] 4361d96c52 Merge pull request #312 from qaiu/cursor/release-v0413-5597
release: v0.4.13
2026-11-25 16:19:59 +00:00
Cursor Agentandqaiu 971cdcd067 release: v0.4.13
Bump the app version for ajaxfiles.php file pages (#310) and the
loaded-file name filter (#311). The release notes state that winx123
was fully downloaded, the three comparison links were Range-only, and
the filter UI was checked on a local fixture rather than a live share.

Co-authored-by: qaiu <[email protected]>
2026-11-25 16:15:53 +00:00
cursor[bot] 4b9339072a Merge pull request #311 from qaiu/cursor/folder-name-filter-91fc
web: 按已加载文件名筛选,并限制目录树全选范围
2026-11-25 16:14:54 +00:00
9 changed files with 45 additions and 34 deletions

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ body:
id: version
attributes:
label: 版本号
description: 页面上的版本,或发布包名里的版本,例如 0.4.12。
placeholder: "0.4.12"
description: 页面上的版本,或发布包名里的版本,例如 0.4.13。
placeholder: "0.4.13"
validations:
required: true
- type: dropdown
+2 -2
View File
@@ -25,8 +25,8 @@ body:
id: version
attributes:
label: 版本号
description: 例如 0.4.12。不确定就写获取方式。
placeholder: "0.4.12"
description: 例如 0.4.13。不确定就写获取方式。
placeholder: "0.4.13"
validations:
required: true
- type: dropdown
+17 -20
View File
@@ -1,25 +1,22 @@
## 更新内容
目录列表支持分页了。之前蓝奏云目录只返回前 50 个文件,小飞机盘和蓝奏云优享只返回前 60 个。早先的分页需求见 https://github.com/qaiu/netdisk-fast-download/issues/112 。
- 目录分页(#308):
- 蓝奏云:按页读取 `filemoreajax`,每页 50 个。只有 `zt=2`(翻过最后一页)或不足 50 个的页才算结束。`zt=4`「请刷新,重试0」视为限流,同一页等 2 秒、再等 5 秒重试;仍失败就返回可重试的错误,不当作最后一页。每页返回 `nextCursor`,下一页沿用同一组翻页参数。不带游标时最多直接请求到第 6 页。
- 小飞机盘、蓝奏云优享:`offset` 作为页码,每页 60 个,由 `totalPage` / `total` 判断是否还有下一页。
- 新接口 `/v2/getFileListPage` 返回 `list`、`hasMore`、`nextPage`、`nextCursor`、`total`、`totalPage`。`/v2/getFileList` 也接受 `page`(或 `pg`)和 `pageCursor`。不带页码时返回结构和以前一样。不支持分页的网盘请求第 2 页及以后时返回空页。
- 前端:目录面板和树形视图有「加载更多」,滚动到底也会自动加载下一页。已加载的文件会保留,加载失败时显示错误并停止自动加载,点击可重试。`list.html` 同样支持。
- 蓝奏云目录风控页(#307):目录分享页改用移动端 UA 请求,文件页仍用桌面 UA。如果仍返回空白风控页,提示「访问风控,不能据此判断分享已失效」,不再报成分享已失效。
- 新增 Issue 表单:解析失败、运行问题、功能建议(#305)。
## 实测范围
- 蓝奏云 `pan.lanzoui.com/b66477`:连续翻完 93 页,共 4598 个文件,没有重复,最后一页 9 个且 `hasMore=false`。实测遇到 `zt=4` 时,2 秒后重试成功。第 2 页的文件可以下载。
- 蓝奏云带密码目录 `moteam.lanzoum.com/b00yaejvte`(密码 `1234`):第 1 页 7 个且没有下一页,第 2 页为空。不带页码的旧接口仍返回 7 个。
- 蓝奏云优享:用真实小目录、把每页条数临时设为 1 来验证。`offset` 是从 1 开始的页码,`total` / `totalPage` 正确,翻过最后一页为空。
- 夸克、城通:目录列表和以前一样,请求第 2 页返回空页。
- 蓝奏文件页识别 `ajaxfiles.php`(#310):
- 单文件页 iframe 里的下载 ajax 写成了 `/ajaxfiles.php`。解析器原来只认 `ajaxm.php` 和 `ajaxfile.php`,匹配不上就报「获取失败0, 可能分享已失效」。表单字段没有改。
- `https://njkn.lanzouw.com/winx123`(无密码)没有失效。修复后本机完整下载 1,197,569 字节,`unzip -t` 无错误。
- 另外三个同样改成 `ajaxfiles.php` 的对照只各下载了 1 MiB Range,返回 206,文件头分别是 7z、zip、zip,没有做完整下载:
- `wwn.lanzouy.com/ihLkw1gezutg`
- b66477 目录下的 `pan.lanzoui.com/io4y41i3zq5e`
- 密码目录 `b00yaejvte` 里的子文件 `w1.lanzn.com/i4VjZ332qzwh`
- 带密码的单文件分享没有找到公开样例,没有实测。
- 目录按已加载文件名筛选(#311):
- 分享目录浏览器和首页解析后的目录共用目录树。两套视图以及独立的 `list.html` 按文件名做大小写不敏感的子串匹配,只筛已经加载的行,不把后续页自动拉完。
- 目录树底部「全选 / 取消全选」只作用于当前关键字命中的、已经加载的可选文件。不勾选被筛掉的项,不拉取未加载分页,也不清掉范围外原来的选择。
- 分页仍走现有的 `nextCursor` / `pageCursor`。
- 界面验收跑在本机开发服务和本机夹具,不是线上分享页。
## 限制
- 小飞机盘没有可用的真实目录样本,只做了本地模拟测试(与蓝奏云优享是同一套接口)。
- 蓝奏云优享没有实测超过 60 个文件的大目录。
- 蓝奏云不带游标直接请求第 7 页及以后会提示需要游标,请按 `nextCursor` 顺序翻页。
- 风控页提示只能说明这次请求被拦截,不代表分享一定有效。
- 没有把这次界面验收当成线上分享页或全站界面已验。
- 三个对照链接只验证了 1 MiB Range,不能据此说这些文件已经完整下载并核对。
- 带密码的单文件分享未测。
- 本机访问部分蓝奏下载域时连接时好时坏。winx123 曾连续超时,重试后完整下载成功。
+1 -1
View File
@@ -470,7 +470,7 @@ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtow
> 注意: netdisk-fast-download.service中的ExecStart的路径改为实际路径
```shell
cd ~
wget -O netdisk-fast-download.zip https://github.com/qaiu/netdisk-fast-download/releases/download/v0.4.12/netdisk-fast-download-linux-amd64.zip
wget -O netdisk-fast-download.zip https://github.com/qaiu/netdisk-fast-download/releases/download/v0.4.13/netdisk-fast-download-linux-amd64.zip
unzip netdisk-fast-download.zip
cd netdisk-fast-download
bash service-install.sh
+18 -4
View File
@@ -4,26 +4,26 @@ NFD 解析器模块:聚合各类网盘/分享页解析,统一输出文件列
- 语言:Java 17
- 构建:Maven
- 模块版本:10.2.5
- 模块版本:10.2.6(独立于应用 `<revision>`,当前应用版本仍是 0.4.13)
## 依赖(Maven Central)
```xml
<dependency>
<groupId>cn.qaiu</groupId>
<artifactId>parser</artifactId>
<version>10.2.5</version>
<version>10.2.6</version>
</dependency>
```
- Gradle Groovy DSL:
```groovy
dependencies {
implementation 'cn.qaiu:parser:10.2.5'
implementation 'cn.qaiu:parser:10.2.6'
}
```
- Gradle Kotlin DSL:
```kotlin
dependencies {
implementation("cn.qaiu:parser:10.2.5")
implementation("cn.qaiu:parser:10.2.6")
}
```
@@ -56,6 +56,20 @@ mvn -pl parser -am install
mvn -pl parser test
```
## 发布到 Maven Central(手动)
`cn.qaiu:parser` 不由 `.github/workflows/maven.yml` 发布。该 workflow 只在推送 `v*` tag 时构建 GitHub Release 压缩包和 Docker 镜像。
Central 上的 `10.2.5` 已发布,不能覆盖。下一版只发布 `10.2.6`。在仓库根目录执行:
```
mvn -pl parser -am clean deploy -DskipTests
```
本机需要 JDK 17+、Maven 3.9+、可用于签名的 GPG 私钥,以及 `~/.m2/settings.xml` 中 id 为 `sonatype` 的 Central Portal 用户名和 token。密钥口令放在本机 settings 的 `gpg.passphrase`(插件已使用 `--pinentry-mode loopback`),不要写进仓库,也不要放在命令行参数里。
`parser/pom.xml` 已配置 `central-publishing-maven-plugin`(`publishingServerId=sonatype`,`autoPublish=true`)、`maven-gpg-plugin` 和 `flatten-maven-plugin`(`flattenMode=ossrh`)。上面的 `deploy` 会使用打平后的 POM 签名并自动发布,坐标仍是 `cn.qaiu:parser`,许可证 MIT。
## 自定义解析器扩展
本模块支持用户自定义解析器扩展。通过简单的配置和注册,你可以添加自己的网盘解析实现:
+1 -1
View File
@@ -28,7 +28,7 @@
<dependency>
<groupId>cn.qaiu</groupId>
<artifactId>parser</artifactId>
<version>10.2.5</version>
<version>10.2.6</version>
</dependency>
```
+1 -1
View File
@@ -11,7 +11,7 @@
<dependency>
<groupId>cn.qaiu</groupId>
<artifactId>parser</artifactId>
<version>10.2.5</version>
<version>10.2.6</version>
</dependency>
```
+2 -2
View File
@@ -17,7 +17,7 @@
</modules>
<properties>
<revision>0.4.12</revision>
<revision>0.4.13</revision>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
@@ -32,7 +32,7 @@
<slf4j.version>2.0.16</slf4j.version>
<commons-lang3.version>3.18.0</commons-lang3.version>
<commons-beanutils2.version>2.0.0</commons-beanutils2.version>
<parserVersion>10.2.5</parserVersion>
<parserVersion>10.2.6</parserVersion>
<jackson.version>2.18.9</jackson.version>
<!-- Logback 最新稳定版 -->
<logback.version>1.5.34</logback.version>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "nfd-web",
"version": "0.4.12",
"version": "0.4.13",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",