Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分作品无法下载 PNG 格式文件 #63

Open
RexLeeGrey opened this issue Mar 17, 2024 · 13 comments
Open

部分作品无法下载 PNG 格式文件 #63

RexLeeGrey opened this issue Mar 17, 2024 · 13 comments
Assignees
Labels
功能异常(bug) 需要修复的问题 处理完成(complete) 处理完成的问题 确认问题(confirm) 未来将会修复问题 功能优化(enhancement) 需要优化的功能

Comments

@RexLeeGrey
Copy link

RexLeeGrey commented Mar 17, 2024

有很多作品都无法下载,切换成1.7版本仍然解析失败,但使用其它下载工具可以下载。
image

有些作品显示下载成功但是文件夹是空的,只有一个txt文件,这种下载失败可能是因为文件是webp,在解析的时候将其解析成了png,使用1.7版本能够正常下载。
image

另外,油猴脚本也无法下载这些webp文件。

@JoeanAmier
Copy link
Owner

提供作品链接测试。

@JoeanAmier
Copy link
Owner

测试未能重现问题,功能异常优先尝试更新 Cookie。

@RexLeeGrey
Copy link
Author

RexLeeGrey commented Mar 17, 2024

更新过了,并且我测试了源码版本,仍然无法解决。
第二个问题,如果设置中下载格式设置成webp就能够正常下载

@RexLeeGrey
Copy link
Author

RexLeeGrey commented Mar 17, 2024

清除历史记录也无效,清除后再次下载仍旧会跳过已下载任务

@JoeanAmier
Copy link
Owner

Cookie 是否符合项目要求?

@RexLeeGrey
Copy link
Author

我是edge浏览器,登录后从控制台中的feed文件里提取了web_session=后的数字串
比如:
0400697956af774cxxxxxxx2c0374bxxx7456d

@JoeanAmier
Copy link
Owner

尝试使用完整的 Cookie。

@JoeanAmier JoeanAmier self-assigned this Mar 17, 2024
@JoeanAmier JoeanAmier added the 需要补充(Incomplete) 需要更多问题说明 label Mar 17, 2024
@RexLeeGrey
Copy link
Author

RexLeeGrey commented Mar 17, 2024

使用完整cookie后问题一解决了。
问题二,如果设置成下载webp格式,原本在png格式下能够下载的内容,其质量就会被压缩。例如在png格式下下载为5mb,在webp格式下只有500kb

原因应该在于有些图片不支持png模式下解析的链接,例如:
这一链接中的第一张图片

其真实链接:
https://sns-img-bd.xhscdn.com/spectrum/1000g0k01qhp0m7uf00005o236gt088ae9ek3lcg

png模式下所解析的链接:
https://ci.xiaohongshu.com/1000g0k01qhp0m7uf00005o236gt088ae9ek3lcg?imageView2/2/w/format/png
点击进去后是空页面

image

或许可以检测一下png模式下解析的链接是否错误,错误就换一种解析方法。

@JoeanAmier JoeanAmier added 功能优化(enhancement) 需要优化的功能 确认问题(confirm) 未来将会修复问题 and removed 需要补充(Incomplete) 需要更多问题说明 labels Mar 18, 2024
@JoeanAmier
Copy link
Owner

已确认!

@RexLeeGrey
Copy link
Author

清除历史记录也无效,清除后再次下载仍旧会跳过已下载任务

还有一个问题就是清除历史记录这一功能不起作用,我输入链接之后也无法清除,再次下载仍然会跳过已下载的任务

@JoeanAmier JoeanAmier added the 功能异常(bug) 需要修复的问题 label Mar 18, 2024
@JoeanAmier
Copy link
Owner

直接输入链接没有对作品 ID 进行提取,导致没有正确删除记录,下个版本会修复。

@JoeanAmier JoeanAmier changed the title 有很多作品都无法下载,以及有些作品显示下载成功但是文件夹是空的,只有一个txt文件 部分作品无法下载 PNG 格式文件 Mar 18, 2024
@JoeanAmier
Copy link
Owner

已修复,新版本计划在本月内发布。

@JoeanAmier JoeanAmier added the 处理完成(complete) 处理完成的问题 label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
功能异常(bug) 需要修复的问题 处理完成(complete) 处理完成的问题 确认问题(confirm) 未来将会修复问题 功能优化(enhancement) 需要优化的功能
Projects
Status: 已完成
Development

No branches or pull requests

2 participants