🐛 fix enka assets

This commit is contained in:
xtaodada 2023-01-05 10:29:59 +08:00
parent 1003cf4fc5
commit d71958a9be
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -469,7 +469,7 @@ class _NamecardAssets(_AssetsService):
async def _get_from_enka(self, item: str) -> AsyncIterator[str | None]:
if (url := getattr(self.enka, {"profile": "banner"}.get(item, item), None)) is not None:
yield str(url)
yield url.url
@cached_property
def game_name_map(self) -> dict[str, str]: