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

UP池译名与卡池不一致导致图片资源无法对应 #27

Closed
LoveCany opened this issue Jul 12, 2022 · 4 comments
Closed

UP池译名与卡池不一致导致图片资源无法对应 #27

LoveCany opened this issue Jul 12, 2022 · 4 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@LoveCany
Copy link

BWIKI更新
如上图所示,翻译名在今天经过一次更新,UP池数据在更新后加载(此时译名与卡池未对应),但图片资源名与卡池名对应,会导致无法正确加载图片资源。

是否可以考虑在手动更新/重载卡池时重新抓取BWIKI数据(即使当前UP池未过期),避免上述问题?(虽然我觉得这波是BWIKI编辑全责)

@LoveCany
Copy link
Author

顺便发现了一个奇怪的问题,现在BWIKI的公告已经更正了,但是每次强制更新数据还是会获取到老的译名(无论删掉pretty_up_char.json还是手动修改名称),怀疑是海外CDN缓存还没过期

@azmiao
Copy link
Owner

azmiao commented Jul 12, 2022

bwiki上的卡尺公告里的同步名称就是我改的2333,面包佬翻译的时候一般wiki图鉴名称还未更新所以是他自己翻译的,然后我一般会在卡池更新前的晚上同步图鉴名称,但昨晚忘了2333.然后因为bwiki的缓存无法强制刷新,即使使用wiki自带的强制刷新也没那么快生效,所以bot爬到的内容会一直保持首次爬到的内容,然后大概过一两天才会更新为最新的内容。另外手动更新/重载卡池时本身就会重新抓取BWIKI数据,但缓存刷新不掉,所以爬到的数据不是最新的,之前也研究了很久怎么让他能爬到最新的,但没整出来。

@azmiao
Copy link
Owner

azmiao commented Jul 12, 2022

顺便发现了一个奇怪的问题,现在BWIKI的公告已经更正了,但是每次强制更新数据还是会获取到老的译名(无论删掉pretty_up_char.json还是手动修改名称),怀疑是海外CDN缓存还没过期

是这样的2333

@azmiao
Copy link
Owner

azmiao commented Jul 12, 2022

只能过两天手动重载一下卡池解决,这个模拟抽卡也是我从@HibiKier大佬那移植过来的,后续有空的话我再重新写一个

@azmiao azmiao added bug Something isn't working enhancement New feature or request labels Jul 12, 2022
@azmiao azmiao closed this as completed in 911ac76 Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants