-
Notifications
You must be signed in to change notification settings - Fork 88
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
fix file renaming after task completion #104
base: master
Are you sure you want to change the base?
Conversation
没看懂,改了啥 🤔 |
下载过程中所有图片都会用 |
原始文件名是从这里取出来的 https://github.com/fffonion/xeHentai/blob/master/xeHentai/filters.py#L194 |
目前好像没这种情况了
我观察是在完成任务后的def rename_fname才出的问题,所以才这么改 |
我记得和本子的热门程度有关,有些是走pcdn的,有些不是,会影响url的pattern
可以看一下renamed_map里面的内容正不正确,因为你这个PR删掉的内容都是需要的(可以blame看当时加上的原因),所以我有点困惑到底什么地方有bug |
改完的话下载也是按照id.jpg的,完成后修改扩展名和根据rename_ori修改文件名 |
我铸币了,把duplicate_map也删了,现在补回去了( |
跑了几个有重复文件的图廊,比如:https://exhentai.org/g/2974767/b343ca5dfa/ |
等我有空的时候研究一下! |
fix: #103
应用补丁后下载任务完成后的
扩展名重命名(根据下载图片url中的扩展名,比如目前新上传的文件处理后的非原图都应该是webp,之前上传的文件处理的文件非原图则是jpg)
都应该是正常的,并且任务完成后能生成.xehdone