fixed ogg upload

This commit is contained in:
Robert 2024-03-19 00:49:26 +07:00
parent 888da4b299
commit 358b8f2273
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -51,7 +51,10 @@ class FileUploaderService:
file_content=converted_content
)
logger.info("Finished upload")
elif file_url.endswith(".ogg"):
uploaded_file_id = await self.planfix_client.upload_file(
file_content=BytesIO((await self.client.get(file_url)).read())
)
else:
uploaded_file_id = await self.planfix_client.upload_file_from_url(