mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix get_filename
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user