Skip to content

Conversation

@KirCute
Copy link
Member

@KirCute KirCute commented Nov 7, 2025

Description / 描述

取消对 zip 压缩文件的编码方式推断,对于没有 EFS 标记的 zip 压缩文件,采用用户指定的编码方式进行解码,这样就算解码出来是乱码,也能保证解码结果的稳定,便于后续进行ListExtract操作。

加强了对各种文件名格式的分卷的兼容,现在分卷的序号前可以有任意数量的前导零,文件名内可以有任意数量的.

.z01格式分卷支持。

yeka/zip的依赖迁移到KirCute/zip

Motivation and Context / 背景

How Has This Been Tested? / 测试

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

@j2rong4cn
Copy link
Member

j2rong4cn commented Nov 8, 2025

我试了alist的v3.44.0 挂载本机存储 zip分卷是Bandizip生成的,并不能读取,3.43.0就可以
https://github.com/AlistGo/alist/commits/v3.44.0/internal/stream

@KirCute
Copy link
Member Author

KirCute commented Nov 8, 2025

我试了alist的v3.44.0 挂载本机存储 zip分卷是BandZip生成的,并不能读取,3.43.0就可以 https://github.com/AlistGo/alist/commits/v3.44.0/internal/stream

3.43.0 不应该还不支持分卷压缩包么,是不是把第一个分卷当完整压缩包缩包读了

@j2rong4cn
Copy link
Member

我试了alist的v3.44.0 挂载本机存储 zip分卷是BandZip生成的,并不能读取,3.43.0就可以 https://github.com/AlistGo/alist/commits/v3.44.0/internal/stream

3.43.0 不应该还不支持分卷压缩包么,是不是把第一个分卷当完整压缩包缩包读了

没座

@KirCute
Copy link
Member Author

KirCute commented Nov 8, 2025

没座

多试了几个版本,好像只是我记错了,以前其实是不支持.z01的,只是能把它当成分卷压缩文件识别出来

@PIKACHUIM PIKACHUIM merged commit ee2c77a into OpenListTeam:main Nov 10, 2025
8 checks passed
@KirCute KirCute deleted the fix/zip-encoding branch November 10, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants