Fix get_filename

This commit is contained in:
2023-01-18 18:32:19 +01:00
parent 5431f65c79
commit bef9e4a1db

View File

@@ -47,4 +47,4 @@ async def get_filename(book_id: int, file_type: str) -> Optional[str]:
if response.status_code != 200:
return None
return response.text
return response.text.encode("ascii", "ignore").decode("ascii")