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

feat(media): 将删除特殊字符改为选项控制 #664

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

sgpublic
Copy link
Contributor

选项默认关闭,与修改前行为一致。

起因是 tinyMediaManager 刮削的文件名与 nas-tools 刮削的不一样,一看是 nas-tools 在净化文件名时将中文逗号和问号删掉了:string_utils.py#L309,而这两个符号在文件系统中是允许的。

不知道当初这段代码的作者有什么特殊考虑,删了问号逗号没删句号,所以加个开关允许更改行为。

选项默认关闭,与修改前行为一致。
@hsuyelin hsuyelin merged commit 9ef1d60 into hsuyelin:master Apr 20, 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

Successfully merging this pull request may close these issues.

2 participants