fixed ogg upload
This commit is contained in:
parent
888da4b299
commit
358b8f2273
|
|
@ -51,7 +51,10 @@ class FileUploaderService:
|
||||||
file_content=converted_content
|
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:
|
else:
|
||||||
uploaded_file_id = await self.planfix_client.upload_file_from_url(
|
uploaded_file_id = await self.planfix_client.upload_file_from_url(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user