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

[Bug] 获取的文件名中含有特殊字符导致文件保存失败 #6

Open
juanyilxc opened this issue Aug 9, 2021 · 2 comments

Comments

@juanyilxc
Copy link

调用decodeFile方法解码歌曲,同时获取文件名时,会遇到因为返回的歌曲文件名中含有特殊字符保存失败的情况
例如463754864-192000-ef5b7ed8d2ed9718afd13f2b7e16afb9.mp3.uc!
返回的文件名Stay With Me【鬼怪OST】(Stringed Music Remix)(翻自 朴灿烈\Punch) -Half-blood Kakashi.mp3
但由于windows的文件名中不能包含/:*?"<>| ,故保存文件会失败

私以为可以在获取文件名后判断,过滤特殊字符

@poppinlp
Copy link
Owner

poppinlp commented Aug 9, 2021

赞,多谢多谢。
我之前确实没遇到这个场景,小猪接锅。
我今晚回去了处理一下。

@poppinlp
Copy link
Owner

poppinlp commented Aug 9, 2021

我这周晚点发个修复吧,顺便改点其他东西。

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

2 participants