Diving-Fish / mai-bot

Based on nonebot, a common bot framework for maimai.
MIT License
311 stars 90 forks source link

BUG: 歌曲 ID 11374 导致无法生成 b50 #40

Closed Amia33 closed 1 year ago

Amia33 commented 1 year ago

EDIT: Problem seems not identified, but it's not working anyway...


TL;DR Process song title for id 11374 from \u3000 to \x20 using current stringQ2B function

华立土豆服务器的问题有 workaround 之后,bot 这边也有些问题。 id 11374 这歌在 data 里用的是全角空格然后 bot 没有对它做全角转半角导致绘制出错

详细信息:

https://www.diving-fish.com/api/maimaidxprober/player/records:

...
{
    "achievements": 100.7703,
    "ds": 12.8,
    "dxScore": 1713,
    "fc": "fcp",
    "fs": "",
    "level": "12+",
    "level_index": 3,
    "level_label": "Master",
    "ra": 288,
    "rate": "sssp",
    "song_id": 11374,
    "title": "\u3000",  // Here's the problem.
    "type": "DX"
}
...

src/libraries/maimai_best_50.py中,Line 114-127 定义了转换过程,Line 93 调用它处理了用户名,Line 222-225 处理歌曲名时没调用导致输出了全角空格。

Amia33 commented 1 year ago

Closed since it's not mai-bot problem.