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

无法识别、下载文件名含有特殊字符的图像 #71

Closed
WitchEllen opened this issue Feb 24, 2024 · 3 comments
Closed

无法识别、下载文件名含有特殊字符的图像 #71

WitchEllen opened this issue Feb 24, 2024 · 3 comments

Comments

@WitchEllen
Copy link

系统:Windows11

问题描述:
1.无法下载文件名含有特殊字符的图像,以PID:105983968为例,debug模式输出如下:

C:\Users\user>pxder -p 105983968 --debug

Download Path:  C:\Users\user\Pictures\pixiv
Using Proxy:    http://127.0.0.1:108

  [0]   1/1      pid 105983968  Skadi🎂
Error: ENOENT: no such file or directory, open 'C:\Users\user\AppData\Roaming\pxder\tmp\(105983968)Skadi🎂.jpg'
    at Object.openSync (node:fs:581:18)
    at Object.writeFileSync (node:fs:2365:35)
    at Object.download (C:\Users\user\AppData\Roaming\npm\node_modules\pxder\src\tools.js:52:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async C:\Users\user\AppData\Roaming\npm\node_modules\pxder\src\downloader.js:191:9 {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\user\\AppData\\Roaming\\pxder\\tmp\\(105983968)Skadi🎂.jpg'
}

2.无法读取本地已下载的、文件名含有特殊字符的图像。导致程序尝试重复下载,进一步触发第一条。

补充1:该问题在某次更新pxder后出现。在2023.11.25之前(最后正常下载图像的日期),程序可以正常识别、下载文件名含有特殊字符的图像。上例中的PID:105983968为2023.11.25成功下载的图像。在更新后,运行“pxder -b”时,程序尝试重新下载该图像,下载失败。

补充2:不确定是程序更新问题,或是我对系统的某些操作导致程序无法正常解析特殊字符。从debug信息初步推断,程序无法在临时目录建立带有特殊字符的文件。故以此为标题提交issue,仅供参考。

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Feb 24, 2024

#69 (comment)

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Feb 24, 2024

nodejs 安装最新的 LTS 或者最新版,这个问题应该已经修复

@Silver-Meow
Copy link

[v21.7.1]修了这个BUG (小声)
珠泪饼干

@Tsuk1ko Tsuk1ko closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
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

No branches or pull requests

3 participants