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

部分中文名文件无法修改 #4

Open
ftakanashi opened this issue Jun 22, 2019 · 0 comments
Open

部分中文名文件无法修改 #4

ftakanashi opened this issue Jun 22, 2019 · 0 comments

Comments

@ftakanashi
Copy link

非常好用的小工具。提个小建议。
blur_test.py的第34行前后,原代码:

            if info.has_key("path.utf-8"):
                paths=file["path.utf-8"]

旨在修改path.utf-8属性。不过info是每个file的上级结构,这个判断肯定是False的。导致种子中记录的中文文件名并没有被修改。应该修改成:

            if file.has_key("path.utf-8"):
                paths=file["path.utf-8"]

实测这样就OK了。

另外建议博主在README里面提一下可以直接跑blur_test.py来修改,要不然很多人一脸懵逼啊[笑哭]

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

1 participant